pub struct BoxedIndirection<W>(pub W);Expand description
Runs the given writable or sequence, but places the future inside Box::pin. This layer of indirection helps to break recursion issues in async code.
(This struct can be used as either a writable or a sequence, depending on its contents)
Tuple Fields§
§0: WTrait Implementations§
Source§impl<O, W> Writable<O> for BoxedIndirection<W>
 
impl<O, W> Writable<O> for BoxedIndirection<W>
Source§impl<O, W> WritableSeq<O> for BoxedIndirection<W>where
    O: Output,
    W: WritableSeq<O>,
 
impl<O, W> WritableSeq<O> for BoxedIndirection<W>where
    O: Output,
    W: WritableSeq<O>,
Auto Trait Implementations§
impl<W> Freeze for BoxedIndirection<W>where
    W: Freeze,
impl<W> RefUnwindSafe for BoxedIndirection<W>where
    W: RefUnwindSafe,
impl<W> Send for BoxedIndirection<W>where
    W: Send,
impl<W> Sync for BoxedIndirection<W>where
    W: Sync,
impl<W> Unpin for BoxedIndirection<W>where
    W: Unpin,
impl<W> UnwindSafe for BoxedIndirection<W>where
    W: UnwindSafe,
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