pub enum DetachCell<V> {
Empty(EmptyDetach),
Pending(PendingDetach<V>),
Committed(CommittedDetach<V>),
Terminalized(TerminalizedDetach<V>),
}Expand description
Exact four-variant detach cell mandated by the extraction brief.
Variants§
Empty(EmptyDetach)
No detach replay state.
Pending(PendingDetach<V>)
Accepted detach awaits terminal append.
Committed(CommittedDetach<V>)
Detach committed and is replayable.
Terminalized(TerminalizedDetach<V>)
A later attach consumed binding authority but retained old detach data.
Implementations§
Source§impl<V> DetachCell<V>
impl<V> DetachCell<V>
Sourcepub fn into_terminalized(self) -> Option<TerminalizedDetach<V>>
pub fn into_terminalized(self) -> Option<TerminalizedDetach<V>>
Extracts the mandated fourth variant without exposing its fields.
Trait Implementations§
Source§impl<V: Clone> Clone for DetachCell<V>
impl<V: Clone> Clone for DetachCell<V>
Source§fn clone(&self) -> DetachCell<V>
fn clone(&self) -> DetachCell<V>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<V: Copy> Copy for DetachCell<V>
Source§impl<V: Debug> Debug for DetachCell<V>
impl<V: Debug> Debug for DetachCell<V>
Source§impl<V> Default for DetachCell<V>
impl<V> Default for DetachCell<V>
impl<V: Eq> Eq for DetachCell<V>
Source§impl<V: PartialEq> PartialEq for DetachCell<V>
impl<V: PartialEq> PartialEq for DetachCell<V>
impl<V: PartialEq> StructuralPartialEq for DetachCell<V>
Auto Trait Implementations§
impl<V> Freeze for DetachCell<V>where
V: Freeze,
impl<V> RefUnwindSafe for DetachCell<V>where
V: RefUnwindSafe,
impl<V> Send for DetachCell<V>where
V: Send,
impl<V> Sync for DetachCell<V>where
V: Sync,
impl<V> Unpin for DetachCell<V>where
V: Unpin,
impl<V> UnsafeUnpin for DetachCell<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for DetachCell<V>where
V: 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