enum State<T> {
Idle(Option<Buf>),
Busy(JoinHandle<(Result<usize>, Buf, T)>),
}Variants§
Idle(Option<Buf>)
Holds None if an operation could not be spawned, normally because the
runtime is shutting down. inner is gone in that case, so all further
operations fail.
Busy(JoinHandle<(Result<usize>, Buf, T)>)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for State<T>
impl<T> RefUnwindSafe for State<T>
impl<T> Send for State<T>where
T: Send,
impl<T> Sync for State<T>where
T: Send,
impl<T> Unpin for State<T>
impl<T> UnsafeUnpin for State<T>
impl<T> UnwindSafe for State<T>
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