pub enum WireError {
Show 18 variants
BadMagic(u32),
UnsupportedVersion(u16),
UnsupportedFlags(u16),
Truncated,
TrailingBytes,
Misaligned,
UnknownOp(u8),
UndeclaredTable(u8),
SchemaMismatch {
key: u64,
},
TableRegistry,
NodeExists(u32),
DeadNode(u32),
InvalidChildren,
BadMask {
mask: u32,
words: u32,
},
InvalidUtf8,
Resource {
id: u32,
kind: u64,
},
Budget,
Alloc,
}Expand description
Decoding / apply failure. The replica must be discarded (or resynced) after an error.
Variants§
BadMagic(u32)
UnsupportedVersion(u16)
UnsupportedFlags(u16)
Truncated
TrailingBytes
Misaligned
UnknownOp(u8)
UndeclaredTable(u8)
Wire slot used before being declared.
SchemaMismatch
A declared key exists locally with another schema / words, or violates table invariants.
TableRegistry
NodeExists(u32)
DeadNode(u32)
InvalidChildren
BadMask
InvalidUtf8
Resource
Resource definition failed validation (bounds, alignment, flags, missing child, or cycle).
Budget
Session or frame slot-memory budget exceeded while decoding a wire frame.
Alloc
Transient OS memory reservation failed while decoding or pre-sizing a frame.
Trait Implementations§
impl Eq for WireError
Source§impl Error for WireError
impl Error for WireError
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()
impl StructuralPartialEq for WireError
Auto Trait Implementations§
impl Forget for WireError
impl Freeze for WireError
impl Move for WireError
impl RefUnwindSafe for WireError
impl Send for WireError
impl Sync for WireError
impl Unpin for WireError
impl UnsafeUnpin for WireError
impl UnwindSafe for WireError
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