Enum OpDecodeError
#[non_exhaustive]pub enum OpDecodeError {
UnknownOpCode(u8),
InvalidTopic,
InvalidSubscriptionId,
Wire(DecodeError),
}Expand description
Why encoded journal-op bytes could not be decoded.
Produced by SessionOp::decode and SessionOps::new. Failures of the
wire-level primitives the op encoding is built from are wrapped in
Wire; the other variants are journal-format errors that
have no wire-protocol counterpart.
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.
UnknownOpCode(u8)
An unknown operation code was encountered.
InvalidTopic
A topic or topic filter failed validation.
InvalidSubscriptionId
A subscription identifier exceeds the spec-defined maximum
(268_435_455).
Wire(DecodeError)
A wire-level primitive failed to decode.
Trait Implementations§
§impl Clone for OpDecodeError
impl Clone for OpDecodeError
§fn clone(&self) -> OpDecodeError
fn clone(&self) -> OpDecodeError
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 more§impl Debug for OpDecodeError
impl Debug for OpDecodeError
§impl Display for OpDecodeError
impl Display for OpDecodeError
§impl Error for OpDecodeError
impl Error for OpDecodeError
§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 From<DecodeError> for OpDecodeError
impl From<DecodeError> for OpDecodeError
§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
§impl PartialEq for OpDecodeError
impl PartialEq for OpDecodeError
impl Copy for OpDecodeError
impl Eq for OpDecodeError
impl StructuralPartialEq for OpDecodeError
Auto Trait Implementations§
impl Freeze for OpDecodeError
impl RefUnwindSafe for OpDecodeError
impl Send for OpDecodeError
impl Sync for OpDecodeError
impl Unpin for OpDecodeError
impl UnwindSafe for OpDecodeError
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