pub enum CreationKind<N> {
Birth,
ReplacementIncarnation {
replaces: N,
},
}Expand description
Behavior-owned provenance for a staged fresh actor creation request.
Variants§
Birth
An initial or ordinary later birth.
ReplacementIncarnation
A fresh successor incarnation requested by a replacement protocol.
Fields
§
replaces: NThe exact child incarnation this fresh actor is intended to replace.
Implementations§
Source§impl<N> CreationKind<N>
impl<N> CreationKind<N>
pub const fn replacement_of(replaces: N) -> Self
Trait Implementations§
Source§impl<N: Clone> Clone for CreationKind<N>
impl<N: Clone> Clone for CreationKind<N>
Source§fn clone(&self) -> CreationKind<N>
fn clone(&self) -> CreationKind<N>
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<N: Debug> Debug for CreationKind<N>
impl<N: Debug> Debug for CreationKind<N>
Source§impl<N: PartialEq> PartialEq for CreationKind<N>
impl<N: PartialEq> PartialEq for CreationKind<N>
impl<N: Copy> Copy for CreationKind<N>
impl<N: Eq> Eq for CreationKind<N>
impl<N> StructuralPartialEq for CreationKind<N>
Auto Trait Implementations§
impl<N> Freeze for CreationKind<N>where
N: Freeze,
impl<N> RefUnwindSafe for CreationKind<N>where
N: RefUnwindSafe,
impl<N> Send for CreationKind<N>where
N: Send,
impl<N> Sync for CreationKind<N>where
N: Sync,
impl<N> Unpin for CreationKind<N>where
N: Unpin,
impl<N> UnsafeUnpin for CreationKind<N>where
N: UnsafeUnpin,
impl<N> UnwindSafe for CreationKind<N>where
N: 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