Skip to main content

IcSnapshotTransferReadRequest

Struct IcSnapshotTransferReadRequest 

Source
pub struct IcSnapshotTransferReadRequest<'request, 'metadata> { /* private fields */ }
Expand description

Full original plan and already consumed update reservation for one transfer read.

A semantic read still uses replicated update ingress and the existing mutation reservation lane. It grants no fresh permission or proof of never-dispatched custody; reconstruction never permits repeating a lost read.

Implementations§

Source§

impl<'request, 'metadata> IcSnapshotTransferReadRequest<'request, 'metadata>

Source

pub fn new( plan: &'request OperationPlanRecord, operation_sequence: u64, journal: &AttemptJournalRecord, payload: IcSnapshotTransferReadPayload<'request, 'metadata>, ) -> Result<Self, IcSnapshotTransferReadError>

Bind exact original target/wire bytes and immutable original allowance.

§Errors

Rejects another plan/operation/payload, absent or changed update reservation, or already pending recovery. Creates no journal and spends nothing.

Source

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

Read full original context, inventory, graph and allowances.

Source

pub const fn payload( &self, ) -> IcSnapshotTransferReadPayload<'request, 'metadata>

Read the exact metadata/data payload without reconstructing its bytes.

Source

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

Read the full original operation authority.

Source

pub const fn mutation_attempt(&self) -> u32

Read the already consumed replicated-update attempt.

Source

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

Recheck original reservation before passive response association.

§Errors

Rejects changed authority, settled/replaced update or pending recovery.

Trait Implementations§

Source§

impl<'request, 'metadata> Debug for IcSnapshotTransferReadRequest<'request, 'metadata>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'request, 'metadata> Freeze for IcSnapshotTransferReadRequest<'request, 'metadata>

§

impl<'request, 'metadata> RefUnwindSafe for IcSnapshotTransferReadRequest<'request, 'metadata>

§

impl<'request, 'metadata> Send for IcSnapshotTransferReadRequest<'request, 'metadata>

§

impl<'request, 'metadata> Sync for IcSnapshotTransferReadRequest<'request, 'metadata>

§

impl<'request, 'metadata> Unpin for IcSnapshotTransferReadRequest<'request, 'metadata>

§

impl<'request, 'metadata> UnsafeUnpin for IcSnapshotTransferReadRequest<'request, 'metadata>

§

impl<'request, 'metadata> UnwindSafe for IcSnapshotTransferReadRequest<'request, 'metadata>

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.