pub struct RoutedCreation<A: Address, New> { /* private fields */ }Expand description
One complete creation paired with a route selected by the interpreter.
Behavior never constructs or stores this value. It exists only between the generic batch-routing step and the concrete child host, and it returns complete on rejection or corruption.
Implementations§
Source§impl<A: Address, New> RoutedCreation<A, New>
impl<A: Address, New> RoutedCreation<A, New>
Sourcepub const fn new(creation: CreateChild<A, New>, route: A::Nonce) -> Self
pub const fn new(creation: CreateChild<A, New>, route: A::Nonce) -> Self
Pair one creation with the route selected by the current runtime.
pub const fn id(&self) -> CreationId
pub const fn kind(&self) -> CreationKind
pub const fn route(&self) -> A::Nonce
Sourcepub fn child_mut(&mut self) -> &mut New
pub fn child_mut(&mut self) -> &mut New
Borrow the staged child for its pure initialization fold while the complete routed request remains owned for a possible rejection.
pub fn into_parts(self) -> (CreateChild<A, New>, A::Nonce)
Trait Implementations§
Source§impl<A: Clone + Address, New: Clone> Clone for RoutedCreation<A, New>
impl<A: Clone + Address, New: Clone> Clone for RoutedCreation<A, New>
Source§fn clone(&self) -> RoutedCreation<A, New>
fn clone(&self) -> RoutedCreation<A, New>
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 moreimpl<A: Eq + Address, New: Eq> Eq for RoutedCreation<A, New>
impl<A: Address, New> StructuralPartialEq for RoutedCreation<A, New>
Auto Trait Implementations§
impl<A, New> Freeze for RoutedCreation<A, New>
impl<A, New> RefUnwindSafe for RoutedCreation<A, New>
impl<A, New> Send for RoutedCreation<A, New>
impl<A, New> Sync for RoutedCreation<A, New>
impl<A, New> Unpin for RoutedCreation<A, New>
impl<A, New> UnsafeUnpin for RoutedCreation<A, New>
impl<A, New> UnwindSafe for RoutedCreation<A, New>
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