Skip to main content

IcSnapshotMetadataReply

Struct IcSnapshotMetadataReply 

Source
pub struct IcSnapshotMetadataReply<'request> { /* private fields */ }
Expand description

Read-only pinned metadata and exact raw evidence under a declared request.

Optional source, unavailable globals and optional timer/hook fields retain their actual presence. Missing information is not a default or upload input. Floating globals retain their bits; globals and chunk rows retain wire order. This evidence grants no complete transfer, authentic origin or effect outcome.

Implementations§

Source§

impl<'request> IcSnapshotMetadataReply<'request>

Source

pub fn decode( request: &'request IcSnapshotMetadataRequest, bytes: &[u8], ) -> Result<Self, IcSnapshotMetadataError>

Decode one bounded metadata argument without skipped fields or extra bytes.

§Errors

Rejects excessive raw bytes, malformed/unsupported wire values, sequence bounds, certified data above 32 bytes, non-SHA-256/duplicate chunk hashes and v128 globals outside their unsigned 128-bit range.

Source

pub const fn request(&self) -> &'request IcSnapshotMetadataRequest

Read the exact declared request; the reply wire authenticates no target.

Source

pub const fn metadata(&self) -> &ReadCanisterSnapshotMetadataResult

Read admitted pinned DTO values without mutation access.

Source

pub const fn payload_checksum(&self) -> &ArtifactChecksumRecord

Read SHA-256 of exact raw bytes, including optional fields and wire ordering.

Source

pub fn digest(&self) -> ArtifactChecksumRecord

Bind original request and raw reply checksums in the metadata evidence domain.

Trait Implementations§

Source§

impl Debug for IcSnapshotMetadataReply<'_>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'request> Freeze for IcSnapshotMetadataReply<'request>

§

impl<'request> RefUnwindSafe for IcSnapshotMetadataReply<'request>

§

impl<'request> Send for IcSnapshotMetadataReply<'request>

§

impl<'request> Sync for IcSnapshotMetadataReply<'request>

§

impl<'request> Unpin for IcSnapshotMetadataReply<'request>

§

impl<'request> UnsafeUnpin for IcSnapshotMetadataReply<'request>

§

impl<'request> UnwindSafe for IcSnapshotMetadataReply<'request>

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.