pub enum BinaryError {
Show 16 variants
UnsupportedVersion {
found: u8,
supported: Vec<u8>,
},
InvalidFID {
fid: u16,
reason: String,
},
InvalidTypeTag {
tag: u8,
},
InvalidValue {
field_id: u16,
type_tag: u8,
reason: String,
},
TrailingData {
bytes_remaining: usize,
},
CanonicalViolation {
reason: String,
},
UnexpectedEof {
expected: usize,
found: usize,
},
InvalidVarInt {
reason: String,
},
InvalidUtf8 {
field_id: u16,
},
TextFormatError {
source: LnmpError,
},
NestingDepthExceeded {
depth: usize,
max: usize,
},
NestedStructureNotSupported,
RecordSizeExceeded {
size: usize,
max: usize,
},
InvalidNestedStructure {
reason: String,
},
UnsupportedFeature {
feature: String,
},
DeltaError {
reason: String,
},
}Expand description
Error type for binary format operations
Variants§
UnsupportedVersion
Unsupported protocol version
InvalidFID
Invalid field identifier
InvalidTypeTag
Invalid type tag
InvalidValue
Invalid value data
Fields
TrailingData
Trailing data after frame
CanonicalViolation
Canonical form violation
UnexpectedEof
Insufficient data (unexpected end of input)
InvalidVarInt
Invalid VarInt encoding
InvalidUtf8
Invalid UTF-8 in string
TextFormatError
Conversion error from text format
NestingDepthExceeded
Nesting depth exceeded (v0.5)
NestedStructureNotSupported
Nested structure not supported (v0.4 compatibility)
RecordSizeExceeded
Record size exceeded (v0.5)
InvalidNestedStructure
Invalid nested structure (v0.5)
UnsupportedFeature
Unsupported feature flag (future v0.5 functionality)
DeltaError
Delta encoder/decoder related failure
Trait Implementations§
Source§impl Clone for BinaryError
impl Clone for BinaryError
Source§fn clone(&self) -> BinaryError
fn clone(&self) -> BinaryError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinaryError
impl Debug for BinaryError
Source§impl Display for BinaryError
impl Display for BinaryError
Source§impl Error for BinaryError
impl Error for BinaryError
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<BinaryError> for DeltaError
impl From<BinaryError> for DeltaError
Source§fn from(err: BinaryError) -> Self
fn from(err: BinaryError) -> Self
Converts to this type from the input type.
Source§impl From<BinaryError> for StreamingError
impl From<BinaryError> for StreamingError
Source§fn from(err: BinaryError) -> Self
fn from(err: BinaryError) -> Self
Converts to this type from the input type.
Source§impl From<DeltaError> for BinaryError
impl From<DeltaError> for BinaryError
Source§fn from(err: DeltaError) -> Self
fn from(err: DeltaError) -> Self
Converts to this type from the input type.
Source§impl From<LnmpError> for BinaryError
impl From<LnmpError> for BinaryError
Source§impl PartialEq for BinaryError
impl PartialEq for BinaryError
impl StructuralPartialEq for BinaryError
Auto Trait Implementations§
impl Freeze for BinaryError
impl RefUnwindSafe for BinaryError
impl Send for BinaryError
impl Sync for BinaryError
impl Unpin for BinaryError
impl UnwindSafe for BinaryError
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