aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2015-03-05 11:19:58 -0500
committerJosh Matthews <josh@joshmatthews.net>2015-04-16 11:46:42 -0400
commitd0704d17970987a1b96f1e4d6a50aae986542435 (patch)
treeab6b47ee3c56e2b27f0dc02efd425ce56fe1d937 /components/script/script_task.rs
parent7b3043a59bd01c77d22da3cfd0e4951820c8e972 (diff)
downloadservo-d0704d17970987a1b96f1e4d6a50aae986542435.tar.gz
servo-d0704d17970987a1b96f1e4d6a50aae986542435.zip
Documentation.
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index e43ca69a981..31116307b3c 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -201,6 +201,9 @@ pub trait ScriptChan {
fn clone(&self) -> Box<ScriptChan+Send>;
}
+/// An interface for receiving ScriptMsg values in an event loop. Used for synchronous DOM
+/// APIs that need to abstract over multiple kinds of event loops (worker/main thread) with
+/// different Receiver interfaces.
pub trait ScriptPort {
fn recv(&self) -> ScriptMsg;
}