pub enum ConsumeOutcome<T>where
T: Copy,{
Empty,
Gated,
Executed(T),
}Expand description
Result of asking for a command with a caller-supplied execution gate.
Variants§
Empty
No command was pending, regardless of the gate.
Gated
The closed gate retained the command and its exact remaining lifetime.
Executed(T)
This value was removed for execution by the caller, exactly once.
Trait Implementations§
Source§impl<T> Clone for ConsumeOutcome<T>
impl<T> Clone for ConsumeOutcome<T>
Source§fn clone(&self) -> ConsumeOutcome<T>
fn clone(&self) -> ConsumeOutcome<T>
Returns a duplicate 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 moreSource§impl<T> Debug for ConsumeOutcome<T>
impl<T> Debug for ConsumeOutcome<T>
Source§impl<T> PartialEq for ConsumeOutcome<T>
impl<T> PartialEq for ConsumeOutcome<T>
impl<T> Copy for ConsumeOutcome<T>where
T: Copy,
impl<T> Eq for ConsumeOutcome<T>
impl<T> StructuralPartialEq for ConsumeOutcome<T>where
T: Copy,
Auto Trait Implementations§
impl<T> Freeze for ConsumeOutcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConsumeOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for ConsumeOutcome<T>where
T: Send,
impl<T> Sync for ConsumeOutcome<T>where
T: Sync,
impl<T> Unpin for ConsumeOutcome<T>where
T: Unpin,
impl<T> UnwindSafe for ConsumeOutcome<T>where
T: 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