#[non_exhaustive]pub enum CodecError {
Malformed,
MissingStamp {
sub: String,
},
}Expand description
Envelope-codec failure — a frame could not be decoded/encoded.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Malformed
The frame was not valid for this envelope format.
MissingStamp
A value frame (event, snap) for subscription sub lacks its
mandatory write stamp (AimX 4.0). Unlike Malformed
it names the subscription, so the client can end that subscription with
RpcError::Protocol instead of dropping the frame unseen.
Trait Implementations§
Source§impl Clone for CodecError
impl Clone for CodecError
Source§impl Debug for CodecError
impl Debug for CodecError
impl Eq for CodecError
Source§impl PartialEq for CodecError
impl PartialEq for CodecError
impl StructuralPartialEq for CodecError
Auto Trait Implementations§
impl Freeze for CodecError
impl RefUnwindSafe for CodecError
impl Send for CodecError
impl Sync for CodecError
impl Unpin for CodecError
impl UnsafeUnpin for CodecError
impl UnwindSafe for CodecError
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