Struct tsukuyomi::modifier::BeforeHandle [−][src]
pub struct BeforeHandle(_);
The type representing a return value from Modifier::before_handle
.
Methods
impl BeforeHandle
[src]
impl BeforeHandle
pub fn ready(result: Result<Option<Output>, Error>) -> BeforeHandle
[src]
pub fn ready(result: Result<Option<Output>, Error>) -> BeforeHandle
Creates 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
) -> BeforeHandle
Creates 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
) -> BeforeHandle
Creates a BeforeHandle
from a future.
Trait Implementations
impl Debug for BeforeHandle
[src]
impl Debug for BeforeHandle
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats 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 BeforeHandle
impl !Sync for BeforeHandle
impl !Sync for BeforeHandle