Trait script::script_runtime::ScriptPort
source · pub trait ScriptPort {
// Required method
fn recv(&self) -> Result<CommonScriptMsg, ()>;
}
Expand description
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.