pub enum EnvelopeError {
TooShort,
InvalidMagic(u8),
UnknownCrdtType(u8),
}Expand description
Error parsing a version envelope.
Variants§
TooShort
Data is too short to contain a valid envelope.
InvalidMagic(u8)
Missing or incorrect magic byte.
UnknownCrdtType(u8)
Unknown CRDT type byte.
Trait Implementations§
Source§impl Clone for EnvelopeError
impl Clone for EnvelopeError
Source§fn clone(&self) -> EnvelopeError
fn clone(&self) -> EnvelopeError
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 EnvelopeError
impl Debug for EnvelopeError
Source§impl Display for EnvelopeError
impl Display for EnvelopeError
Source§impl Error for EnvelopeError
Available on crate feature std only.
impl Error for EnvelopeError
Available on crate feature
std only.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 PartialEq for EnvelopeError
impl PartialEq for EnvelopeError
impl Eq for EnvelopeError
impl StructuralPartialEq for EnvelopeError
Auto Trait Implementations§
impl Freeze for EnvelopeError
impl RefUnwindSafe for EnvelopeError
impl Send for EnvelopeError
impl Sync for EnvelopeError
impl Unpin for EnvelopeError
impl UnsafeUnpin for EnvelopeError
impl UnwindSafe for EnvelopeError
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