pub enum MaybeReady<T: Clone> {
Ready(T),
Pending(Sender<T>),
}
Variants§
Implementations§
Source§impl<T: Clone + Debug> MaybeReady<T>
impl<T: Clone + Debug> MaybeReady<T>
Trait Implementations§
Source§impl<T: Clone + Clone> Clone for MaybeReady<T>
impl<T: Clone + Clone> Clone for MaybeReady<T>
Source§fn clone(&self) -> MaybeReady<T>
fn clone(&self) -> MaybeReady<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<T> Freeze for MaybeReady<T>where
T: Freeze,
impl<T> !RefUnwindSafe for MaybeReady<T>
impl<T> !Send for MaybeReady<T>
impl<T> !Sync for MaybeReady<T>
impl<T> Unpin for MaybeReady<T>where
T: Unpin,
impl<T> !UnwindSafe for MaybeReady<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