Skip to main content

IcMutationRequest

Struct IcMutationRequest 

Source
pub struct IcMutationRequest<'a> { /* private fields */ }
Expand description

Structural request for one already reserved original host-ingress mutation.

Retained identity does not prove fresh permissions, prerequisites, application safety or exclusive custody. A pending reservation does not prove it was never dispatched. This request is not a dispatch permit or an interruption retry.

Implementations§

Source§

impl<'a> IcMutationRequest<'a>

Source

pub fn new( plan: &'a OperationPlanRecord, operation_sequence: u64, journal: &AttemptJournalRecord, payload: &'a IcManagementRequestRecord, ) -> Result<Self, IcMutationRequestError>

Bind exact original plan, allowances and IC bytes after mutation reservation.

Accepts only capture, load, start and stop; observations have separate reservations. Derivation never creates a journal, spends or resets allowance.

§Errors

Rejects unknown operations, changed authority/bytes, absent pending mutation or an observation already reserved for recovery.

Source

pub const fn plan(&self) -> &OperationPlanRecord

Read original full context, inventory, selection and dependency declarations.

Source

pub const fn payload(&self) -> &'a IcManagementRequestRecord

Read exact management receiver, routing target, method and Candid argument bytes.

Source

pub const fn authority(&self) -> &AttemptAuthorityRecord

Read canonical original identity and immutable mutation/observation limits.

Source

pub const fn mutation_attempt(&self) -> u32

Read the original already consumed mutation attempt number.

Source

pub fn validate_journal( &self, journal: &AttemptJournalRecord, ) -> Result<(), IcMutationRequestError>

Recheck the exact current pending reservation without IO or effect admission.

§Errors

Rejects different authority, replaced/settled mutation or observation recovery.

Trait Implementations§

Source§

impl<'a> Debug for IcMutationRequest<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for IcMutationRequest<'a>

§

impl<'a> RefUnwindSafe for IcMutationRequest<'a>

§

impl<'a> Send for IcMutationRequest<'a>

§

impl<'a> Sync for IcMutationRequest<'a>

§

impl<'a> Unpin for IcMutationRequest<'a>

§

impl<'a> UnsafeUnpin for IcMutationRequest<'a>

§

impl<'a> UnwindSafe for IcMutationRequest<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.