pub enum CodecError {
Envelope(EnvelopeError),
Command,
Identity,
Policy,
Limit,
Parts,
Length,
Capacity,
Position,
Profile,
}Expand description
Structural rejection. No error establishes whether an earlier retry committed.
Variants§
Envelope(EnvelopeError)
Envelope, bounds, correlation, or link-session shape is invalid.
Command
Wrong opcode, direction, or correlation shape.
Identity
Zero identity or required fencing epoch.
Policy
Unknown policy byte.
Limit
Empty batch or exceeded record/part bounds.
Parts
A record must contain at least one part, which may itself be empty.
Length
Truncated/trailing bytes, inconsistent packed lengths, or arithmetic overflow.
Capacity
Caller must reserve both output arenas before encoding.
Position
Invalid confirmation position or progress beyond the received prefix.
Profile
Unsupported reader mode, delivery requirement, or progress evidence.
Trait Implementations§
Source§impl Clone for CodecError
impl Clone for CodecError
impl Copy for CodecError
Source§impl Debug for CodecError
impl Debug for CodecError
Source§impl Display for CodecError
impl Display for CodecError
impl Eq for CodecError
Source§impl Error for CodecError
impl Error for CodecError
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<EnvelopeError> for CodecError
impl From<EnvelopeError> for CodecError
Source§fn from(source: EnvelopeError) -> Self
fn from(source: EnvelopeError) -> Self
Converts to this type from the input type.
Source§impl From<LayoutError> for CodecError
impl From<LayoutError> for CodecError
Source§fn from(_: LayoutError) -> Self
fn from(_: LayoutError) -> Self
Converts to this type from the input type.
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