pub struct CreationCorrelation<P, Occurrence>where
P: Protocol,{ /* private fields */ }Expand description
Non-authoritative correlation to one creation result in the current action.
P and Occurrence select the exact creator-local entry statically. The
value carries no recipient, actor identity, or child-hosting authority; the
corresponding creation settlement remains its sole authoritative owner.
Equal ID representations at different occurrences cannot be substituted:
ⓘ
struct Worker;
impl behavior::Protocol for Worker {
type Addr = behavior::MailAddr;
type Msg = ();
}
struct Primary;
struct Backup;
let mut sequence = behavior::CreationSequence::new();
let id = sequence.issue().expect("fixture creation ID");
let backup = behavior::CreationCorrelation::<Worker, Backup>::new(id);
let _: behavior::CreationCorrelation<Worker, Primary> = backup;Implementations§
Source§impl<P, Occurrence> CreationCorrelation<P, Occurrence>where
P: Protocol,
impl<P, Occurrence> CreationCorrelation<P, Occurrence>where
P: Protocol,
pub const fn new(id: CreationId) -> Self
pub const fn id(self) -> CreationId
Trait Implementations§
Source§impl<P, Occurrence> Clone for CreationCorrelation<P, Occurrence>where
P: Protocol,
impl<P, Occurrence> Clone for CreationCorrelation<P, Occurrence>where
P: Protocol,
Source§impl<P, Occurrence> Debug for CreationCorrelation<P, Occurrence>where
P: Protocol,
impl<P, Occurrence> Debug for CreationCorrelation<P, Occurrence>where
P: Protocol,
Source§impl<P, Occurrence> PartialEq for CreationCorrelation<P, Occurrence>where
P: Protocol,
impl<P, Occurrence> PartialEq for CreationCorrelation<P, Occurrence>where
P: Protocol,
impl<P, Occurrence> Copy for CreationCorrelation<P, Occurrence>where
P: Protocol,
impl<P, Occurrence> Eq for CreationCorrelation<P, Occurrence>where
P: Protocol,
Auto Trait Implementations§
impl<P, Occurrence> Freeze for CreationCorrelation<P, Occurrence>
impl<P, Occurrence> RefUnwindSafe for CreationCorrelation<P, Occurrence>
impl<P, Occurrence> Send for CreationCorrelation<P, Occurrence>
impl<P, Occurrence> Sync for CreationCorrelation<P, Occurrence>
impl<P, Occurrence> Unpin for CreationCorrelation<P, Occurrence>
impl<P, Occurrence> UnsafeUnpin for CreationCorrelation<P, Occurrence>
impl<P, Occurrence> UnwindSafe for CreationCorrelation<P, Occurrence>
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