diff options
author | Keith Yeung <kungfukeith11@gmail.com> | 2016-01-06 11:44:54 -0500 |
---|---|---|
committer | Keith Yeung <kungfukeith11@gmail.com> | 2016-03-10 01:05:53 -0500 |
commit | 3f2cbf002520289f706e7a7c6448a39ca7fa4bef (patch) | |
tree | 668324ce1c47e981314f28aab246b6524f92fda9 /components/script/task_source/mod.rs | |
parent | fa93d3f4674c0e326a644826f5c394136a858f2b (diff) | |
download | servo-3f2cbf002520289f706e7a7c6448a39ca7fa4bef.tar.gz servo-3f2cbf002520289f706e7a7c6448a39ca7fa4bef.zip |
Add task_source directory
Use DOMManipulationTaskSource whenever possible
Diffstat (limited to 'components/script/task_source/mod.rs')
-rw-r--r-- | components/script/task_source/mod.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/components/script/task_source/mod.rs b/components/script/task_source/mod.rs new file mode 100644 index 00000000000..74dd7347e9e --- /dev/null +++ b/components/script/task_source/mod.rs @@ -0,0 +1,16 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +pub mod dom_manipulation; +pub mod file_reading; +pub mod history_traversal; +pub mod networking; +pub mod user_interaction; + +use std::result::Result; + +pub trait TaskSource<T> { + fn queue(&self, msg: T) -> Result<(), ()>; + fn clone(&self) -> Box<TaskSource<T> + Send>; +} |