pub enum IcSnapshotDataError {
Request(IcRequestError),
InvalidRangeSize,
RangeOutsideMetadata,
InvalidChunkHash,
ChunkNotInMetadata,
ReplyTooLarge,
InvalidReply,
LengthMismatch,
ChunkHashMismatch,
}Expand description
Typed metadata/range/data admission failures, without raw payload diagnostics.
Variants§
Request(IcRequestError)
Existing canonical IC argument boundary rejected the request.
InvalidRangeSize
Range size is zero or greater than the local single-call bound.
RangeOutsideMetadata
Checked offset plus size exceeds the retained region or overflows nat64.
InvalidChunkHash
Chunk identity is not exactly 32 SHA-256 bytes.
ChunkNotInMetadata
The exact chunk identity is absent from retained metadata.
ReplyTooLarge
Raw wire input exceeded its bound before parsing.
InvalidReply
Wire shape, decoder work, header or actual chunk bounds failed.
LengthMismatch
The decoded range is shorter or longer than the exact request.
ChunkHashMismatch
Actual chunk bytes do not hash to the requested retained identity.
Trait Implementations§
Source§impl Debug for IcSnapshotDataError
impl Debug for IcSnapshotDataError
Source§impl Display for IcSnapshotDataError
impl Display for IcSnapshotDataError
impl Eq for IcSnapshotDataError
Source§impl Error for IcSnapshotDataError
impl Error for IcSnapshotDataError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<IcRequestError> for IcSnapshotDataError
impl From<IcRequestError> for IcSnapshotDataError
Source§fn from(source: IcRequestError) -> Self
fn from(source: IcRequestError) -> Self
Converts to this type from the input type.
Source§impl From<IcSnapshotDataError> for IcSnapshotUploadError
impl From<IcSnapshotDataError> for IcSnapshotUploadError
Source§fn from(source: IcSnapshotDataError) -> Self
fn from(source: IcSnapshotDataError) -> Self
Converts to this type from the input type.
Source§impl From<IcSnapshotDataError> for IcSnapshotUploadDataObservationAssociationError
impl From<IcSnapshotDataError> for IcSnapshotUploadDataObservationAssociationError
Source§fn from(source: IcSnapshotDataError) -> Self
fn from(source: IcSnapshotDataError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IcSnapshotDataError
impl PartialEq for IcSnapshotDataError
impl StructuralPartialEq for IcSnapshotDataError
Auto Trait Implementations§
impl Freeze for IcSnapshotDataError
impl RefUnwindSafe for IcSnapshotDataError
impl Send for IcSnapshotDataError
impl Sync for IcSnapshotDataError
impl Unpin for IcSnapshotDataError
impl UnsafeUnpin for IcSnapshotDataError
impl UnwindSafe for IcSnapshotDataError
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