pub struct Output<'d, R: Task<'d, A>, A> { /* private fields */ }Expand description
Route-specific result retained by one generated task.
Implementations§
Source§impl<'d, R: Task<'d, A>, A> Output<'d, R, A>
impl<'d, R: Task<'d, A>, A> Output<'d, R, A>
pub const fn response(id: Id<'d>, response: R::Output) -> Self
pub const fn rejected(id: Id<'d>, reject: Reject) -> Self
pub fn into_parts(self) -> (Id<'d>, Outcome<R::Output>)
pub fn emit<S>(
self,
make: impl FnOnce(Id<'d>) -> S,
) -> Emitted<'d, S, Stream<'d, R, A>>where
S: Streaming<'d, 'd>,
Trait Implementations§
Auto Trait Implementations§
impl<'d, R, A> !Send for Output<'d, R, A>
impl<'d, R, A> !Sync for Output<'d, R, A>
impl<'d, R, A> Forget for Output<'d, R, A>
impl<'d, R, A> Freeze for Output<'d, R, A>
impl<'d, R, A> RefUnwindSafe for Output<'d, R, A>
impl<'d, R, A> Unpin for Output<'d, R, A>
impl<'d, R, A> UnsafeUnpin for Output<'d, R, A>
impl<'d, R, A> UnwindSafe for Output<'d, R, A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more