Struct asyncio::StrandImmutable
[−]
[src]
pub struct StrandImmutable<'a, T> { /* fields omitted */ }
Provides immutable data and handler execution.
Methods
impl<'a, T: 'static> StrandImmutable<'a, T>
[src]
fn dispatch<F>(&self, func: F) where F: FnOnce(Strand<T>) + Send + 'static
Request the strand to invoke the given handler.
fn post<F>(&self, func: F) where F: FnOnce(Strand<T>) + Send + 'static
Request the strand to invoke the given handler and return immediately.