mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Documentation.
This commit is contained in:
parent
7b3043a59b
commit
d0704d1797
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue