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.
fn wrap<F, R>(&self, handler: F) -> StrandHandler<T, F, R> where F: FnOnce(Strand<T>, Result<R>) + Send + 'static, R: Send + 'static
Provides a Strand
handler to asynchronous operation.
The StrandHandler has trait the Handler
, that type of Handler::Output
is ()
.
unsafe fn as_mut(&'a self) -> Strand<'a, T>
Trait Implementations
impl<'a, T> IoObject for StrandImmutable<'a, T>
[src]
fn io_service(&self) -> &IoService
Returns a IoService
associated with this object.