Struct tsukuyomi::modifier::AfterHandle [−][src]
pub struct AfterHandle(_);
The type representing a return value from Modifier::after_handle
.
Methods
impl AfterHandle
[src]
impl AfterHandle
pub fn ready(result: Result<Output, Error>) -> AfterHandle
[src]
pub fn ready(result: Result<Output, Error>) -> AfterHandle
Creates an AfterHandle
from an immediately value.
pub fn polling(
f: impl FnMut(&mut Input) -> Poll<Output, Error> + Send + 'static
) -> AfterHandle
[src]
pub fn polling(
f: impl FnMut(&mut Input) -> Poll<Output, Error> + Send + 'static
) -> AfterHandle
Creates an AfterHandle
from a closure repsenting an asynchronous computation.
pub fn wrap_future(
future: impl Future<Item = Output, Error = Error> + Send + 'static
) -> AfterHandle
[src]
pub fn wrap_future(
future: impl Future<Item = Output, Error = Error> + Send + 'static
) -> AfterHandle
Creates an AfterHandle
from a Future
.
Trait Implementations
impl Debug for AfterHandle
[src]
impl Debug for AfterHandle
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<T, E> From<Result<T, E>> for AfterHandle where
T: Into<Output>,
Error: From<E>,
[src]
impl<T, E> From<Result<T, E>> for AfterHandle where
T: Into<Output>,
Error: From<E>,
fn from(result: Result<T, E>) -> AfterHandle
[src]
fn from(result: Result<T, E>) -> AfterHandle
Performs the conversion.
Auto Trait Implementations
impl Send for AfterHandle
impl Send for AfterHandle
impl !Sync for AfterHandle
impl !Sync for AfterHandle