pub enum CanonicalDecodeError {
WrongDomain,
UnsupportedVersion(u16),
Truncated,
ObjectTooLarge {
observed: u64,
maximum: u64,
},
FieldTooLarge {
observed: u32,
maximum: u32,
},
LengthOverflow,
AllocationFailed,
TrailingBytes,
UnknownTag {
field: &'static str,
tag: u8,
},
Invariant(String),
}Expand description
Fail-closed canonical object decoding failures.
Variants§
WrongDomain
Object belongs to another canonical domain.
UnsupportedVersion(u16)
Object format version is unsupported.
Truncated
Object ended before a declared field was complete.
ObjectTooLarge
Complete object exceeds the admitted allocation/work bound.
FieldTooLarge
One bounded field exceeds its admitted bytes.
LengthOverflow
Length arithmetic cannot be represented safely.
AllocationFailed
A bounded canonical encoding or decoding allocation failed.
TrailingBytes
Canonical object contains bytes after its final field.
UnknownTag
A field tag is not recognized by this version.
Invariant(String)
Decoded fields violate a semantic page invariant.
Trait Implementations§
Source§impl Clone for CanonicalDecodeError
impl Clone for CanonicalDecodeError
Source§impl Debug for CanonicalDecodeError
impl Debug for CanonicalDecodeError
Source§impl Display for CanonicalDecodeError
impl Display for CanonicalDecodeError
impl Eq for CanonicalDecodeError
Source§impl Error for CanonicalDecodeError
impl Error for CanonicalDecodeError
1.30.0 · 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<CanonicalDecodeError> for FsError
impl From<CanonicalDecodeError> for FsError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for AttributeLookupError
impl From<CanonicalDecodeError> for AttributeLookupError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for AttributeListError
impl From<CanonicalDecodeError> for AttributeListError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for AttributeMutationError
impl From<CanonicalDecodeError> for AttributeMutationError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for BlobBuildError
impl From<CanonicalDecodeError> for BlobBuildError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for BlobReadError
impl From<CanonicalDecodeError> for BlobReadError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for CheckpointError
impl From<CanonicalDecodeError> for CheckpointError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for ClosureError
impl From<CanonicalDecodeError> for ClosureError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for GenerationExportManifestError
impl From<CanonicalDecodeError> for GenerationExportManifestError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for ExtentMutationError
impl From<CanonicalDecodeError> for ExtentMutationError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for FileRecordReadError
impl From<CanonicalDecodeError> for FileRecordReadError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for FileTableMutationError
impl From<CanonicalDecodeError> for FileTableMutationError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for DirectoryReadError
impl From<CanonicalDecodeError> for DirectoryReadError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for MergeGenerationError
impl From<CanonicalDecodeError> for MergeGenerationError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for AuthenticatedProbeError
impl From<CanonicalDecodeError> for AuthenticatedProbeError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for ExtentReadError
impl From<CanonicalDecodeError> for ExtentReadError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for TreeReadError
impl From<CanonicalDecodeError> for TreeReadError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for RegularMutationError
impl From<CanonicalDecodeError> for RegularMutationError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for RetentionCreatedError
impl From<CanonicalDecodeError> for RetentionCreatedError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for TreeMutationError
impl From<CanonicalDecodeError> for TreeMutationError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl From<CanonicalDecodeError> for VolumeCreatedError
impl From<CanonicalDecodeError> for VolumeCreatedError
Source§fn from(source: CanonicalDecodeError) -> Self
fn from(source: CanonicalDecodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CanonicalDecodeError
impl PartialEq for CanonicalDecodeError
impl StructuralPartialEq for CanonicalDecodeError
Auto Trait Implementations§
impl Freeze for CanonicalDecodeError
impl RefUnwindSafe for CanonicalDecodeError
impl Send for CanonicalDecodeError
impl Sync for CanonicalDecodeError
impl Unpin for CanonicalDecodeError
impl UnsafeUnpin for CanonicalDecodeError
impl UnwindSafe for CanonicalDecodeError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request