Struct yew_agent::WorkerLink
source · pub struct WorkerLink<W>where
W: Worker,{ /* private fields */ }
Expand description
Link to worker’s scope for creating callbacks.
Implementations§
source§impl<W> WorkerLink<W>where
W: Worker,
impl<W> WorkerLink<W>where
W: Worker,
sourcepub fn respond(&self, id: HandlerId, output: <W as Worker>::Output)
pub fn respond(&self, id: HandlerId, output: <W as Worker>::Output)
Send response to an worker.
sourcepub fn send_message<T>(&self, msg: T)where
T: Into<<W as Worker>::Message>,
pub fn send_message<T>(&self, msg: T)where
T: Into<<W as Worker>::Message>,
Send a message to the worker
sourcepub fn send_input<T>(&self, input: T)where
T: Into<<W as Worker>::Input>,
pub fn send_input<T>(&self, input: T)where
T: Into<<W as Worker>::Input>,
Send an input to self
Trait Implementations§
source§impl<W> Clone for WorkerLink<W>where
W: Worker,
impl<W> Clone for WorkerLink<W>where
W: Worker,
source§fn clone(&self) -> WorkerLink<W>
fn clone(&self) -> WorkerLink<W>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<W> !RefUnwindSafe for WorkerLink<W>
impl<W> !Send for WorkerLink<W>
impl<W> !Sync for WorkerLink<W>
impl<W> Unpin for WorkerLink<W>
impl<W> !UnwindSafe for WorkerLink<W>
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.