pub struct CreationResolved<A: Address> {
pub creation: CreationId,
pub kind: CreationKind,
pub result: Result<A, CreationRejection>,
}Expand description
The committed result of one staged behavior::CreateChild request.
Installed is emitted only after fresh allocation, successful
initialization, and binding at nonce. The replacement provenance is the
provenance supplied by Behavior; an interpreter must never infer it from
address reuse or creation order.
Fields§
§creation: CreationId§kind: CreationKind§result: Result<A, CreationRejection>Implementations§
Source§impl<A: Address> CreationResolved<A>
impl<A: Address> CreationResolved<A>
pub const fn new( creation: CreationId, kind: CreationKind, result: Result<A, CreationRejection>, ) -> Self
pub const fn installed( creation: CreationId, kind: CreationKind, address: A, ) -> Self
Sourcepub const fn birth(creation: CreationId, address: A) -> Self
pub const fn birth(creation: CreationId, address: A) -> Self
A successfully committed ordinary birth.
Sourcepub const fn replacement(
creation: CreationId,
previous: CreationId,
address: A,
) -> Self
pub const fn replacement( creation: CreationId, previous: CreationId, address: A, ) -> Self
A successfully committed replacement incarnation.
pub const fn rejected( creation: CreationId, kind: CreationKind, rejection: CreationRejection, ) -> Self
Trait Implementations§
Source§impl<A: Clone + Address> Clone for CreationResolved<A>
impl<A: Clone + Address> Clone for CreationResolved<A>
Source§fn clone(&self) -> CreationResolved<A>
fn clone(&self) -> CreationResolved<A>
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<A: Address> From<(CreationId, CreationKind, Result<A, CreationRejection>)> for CreationResolved<A>
impl<A: Address> From<(CreationId, CreationKind, Result<A, CreationRejection>)> for CreationResolved<A>
Source§fn from(
(creation, kind, result): (CreationId, CreationKind, Result<A, CreationRejection>),
) -> Self
fn from( (creation, kind, result): (CreationId, CreationKind, Result<A, CreationRejection>), ) -> Self
Converts to this type from the input type.
impl<A: Copy + Address> Copy for CreationResolved<A>
impl<A: Eq + Address> Eq for CreationResolved<A>
impl<A: Address> StructuralPartialEq for CreationResolved<A>
Auto Trait Implementations§
impl<A> Freeze for CreationResolved<A>where
A: Freeze,
impl<A> RefUnwindSafe for CreationResolved<A>where
A: RefUnwindSafe,
impl<A> Send for CreationResolved<A>where
A: Send,
impl<A> Sync for CreationResolved<A>where
A: Sync,
impl<A> Unpin for CreationResolved<A>where
A: Unpin,
impl<A> UnsafeUnpin for CreationResolved<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for CreationResolved<A>where
A: 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