Struct tsukuyomi::handler::AsyncResult
source · pub struct AsyncResult<T, E = Error> { /* private fields */ }
Expand description
A type representing asynchronous computation in Tsukuyomi.
Implementations
sourceimpl<T, E> AsyncResult<T, E>
impl<T, E> AsyncResult<T, E>
sourcepub fn poll_fn<F>(f: F) -> Selfwhere
F: FnMut(&mut Input<'_>) -> Poll<T, E> + Send + 'static,
pub fn poll_fn<F>(f: F) -> Selfwhere
F: FnMut(&mut Input<'_>) -> Poll<T, E> + Send + 'static,
Creates an AsyncResult
from a closure representing an asynchronous computation.
sourcepub fn poll_ready(&mut self, input: &mut Input<'_>) -> Poll<T, E>
pub fn poll_ready(&mut self, input: &mut Input<'_>) -> Poll<T, E>
Progress the inner asynchronous computation with the specified Input
.
Trait Implementations
sourceimpl<T, E> Debug for AsyncResult<T, E>where
T: Debug,
E: Debug,
impl<T, E> Debug for AsyncResult<T, E>where
T: Debug,
E: Debug,
Auto Trait Implementations
impl<T, E = Error> !RefUnwindSafe for AsyncResult<T, E>
impl<T, E> Send for AsyncResult<T, E>where
E: Send,
T: Send,
impl<T, E = Error> !Sync for AsyncResult<T, E>
impl<T, E> Unpin for AsyncResult<T, E>where
E: Unpin,
T: Unpin,
impl<T, E = Error> !UnwindSafe for AsyncResult<T, E>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more