pub struct CloseOnDrop<'a, S> { /* private fields */ }Expand description
Close an owned stream if an exchange fails or its future is cancelled. Commit only after all accepted output is flushed and parser progress is saved.
Implementations§
Trait Implementations§
Source§impl<S> Drop for CloseOnDrop<'_, S>
impl<S> Drop for CloseOnDrop<'_, S>
Auto Trait Implementations§
impl<'a, S> !UnwindSafe for CloseOnDrop<'a, S>
impl<'a, S> Forget for CloseOnDrop<'a, S>
impl<'a, S> Freeze for CloseOnDrop<'a, S>
impl<'a, S> RefUnwindSafe for CloseOnDrop<'a, S>where
&'a mut Option<S>: RefUnwindSafe,
impl<'a, S> Send for CloseOnDrop<'a, S>
impl<'a, S> Sync for CloseOnDrop<'a, S>
impl<'a, S> Unpin for CloseOnDrop<'a, S>
impl<'a, S> UnsafeUnpin for CloseOnDrop<'a, S>where
&'a mut Option<S>: UnsafeUnpin,
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