pub enum IcSnapshotUploadError {
Show 13 variants
SourceTargetMismatch,
UnavailableGlobal,
MetadataRequestRequired,
InvalidDestination,
DestinationReusesSource,
ChunkLengthMismatch,
ChunkTooLarge,
ArgumentsTooLarge,
ReplyTooLarge,
InvalidReply,
Data(IcSnapshotDataError),
Checksum(ChecksumError),
Request(IcRequestError),
}Expand description
Typed bounded upload denial; no error changes retained spending or source evidence.
Variants§
SourceTargetMismatch
Exact original source target is outside its retained plan selection.
A missing original global cannot be represented by the upstream upload type.
MetadataRequestRequired
Data upload must retain its exact original metadata-allocation declaration.
InvalidDestination
Destination raw bytes violate the existing 1..=256 ID bounds.
DestinationReusesSource
The new upload declaration attempts to reuse its retained original source ID.
ChunkLengthMismatch
Actual bounded bytes differ from the requested source range length.
ChunkTooLarge
Actual chunk exceeds 1 MiB before cloning or encoding.
ArgumentsTooLarge
Encoded arguments exceed the separate 2 MiB upload ceiling.
ReplyTooLarge
Raw reply exceeds 4 KiB before decoding.
InvalidReply
Finite exact method-specific reply decoding rejected bytes.
Data(IcSnapshotDataError)
Existing range/known-hash owner rejected the source kind.
Checksum(ChecksumError)
The exact original chunk digest differs.
Request(IcRequestError)
Canonical principal or upstream Candid encoding failed.
Trait Implementations§
Source§impl Debug for IcSnapshotUploadError
impl Debug for IcSnapshotUploadError
Source§impl Display for IcSnapshotUploadError
impl Display for IcSnapshotUploadError
Source§impl Error for IcSnapshotUploadError
impl Error for IcSnapshotUploadError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()