Struct tsukuyomi::modifier::BeforeHandle [−][src]
pub struct BeforeHandle(_);
The type representing a return value from Modifier::before_handle.
Methods
impl BeforeHandle[src]
impl BeforeHandlepub fn ready(result: Result<Option<Output>, Error>) -> BeforeHandle[src]
pub fn ready(result: Result<Option<Output>, Error>) -> BeforeHandleCreates a BeforeHandle from an immediately value.
pub fn polling(
f: impl FnMut(&mut Input) -> Poll<Option<Output>, Error> + Send + 'static
) -> BeforeHandle[src]
pub fn polling(
f: impl FnMut(&mut Input) -> Poll<Option<Output>, Error> + Send + 'static
) -> BeforeHandleCreates a BeforeHandle from a closure repsenting an asynchronous computation.
pub fn wrap_future(
future: impl Future<Item = Option<Output>, Error = Error> + Send + 'static
) -> BeforeHandle[src]
pub fn wrap_future(
future: impl Future<Item = Option<Output>, Error = Error> + Send + 'static
) -> BeforeHandleCreates a BeforeHandle from a future.
Trait Implementations
impl Debug for BeforeHandle[src]
impl Debug for BeforeHandlefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<E> From<Result<Option<Output>, E>> for BeforeHandle where
Error: From<E>, [src]
impl<E> From<Result<Option<Output>, E>> for BeforeHandle where
Error: From<E>, Auto Trait Implementations
impl Send for BeforeHandle
impl Send for BeforeHandleimpl !Sync for BeforeHandle
impl !Sync for BeforeHandle