pub enum EnvelopeError {
FrameCount,
HeaderLength,
Magic,
Major(u8),
Opcode(u8),
Flags,
Length,
Limit,
ZeroIdentity,
Correlation,
Session,
Handshake,
}Expand description
Structural native envelope rejection, without interpreting command semantics.
Variants§
FrameCount
Exactly three frames are required, including present empty frames.
HeaderLength
Header is not exactly 64 bytes.
Magic
Magic does not identify Ozzy.
Major(u8)
No implicit legacy fallback or future-major interpretation.
Opcode(u8)
Unallocated command number.
Flags
Flags other than the response bit are reserved.
Length
Claimed sizes differ from actual frames or exceed the wire integer width.
Limit
Frame exceeds the directional receiver’s configured bound.
ZeroIdentity
Mandatory sender or explicitly supplied optional ID is zero.
Correlation
A response cannot be uncorrelated.
Session
Only HELLO can omit the link session.
Handshake
Invalid HELLO/WELCOME direction, correlation, session, or payload.
Trait Implementations§
Source§impl Clone for EnvelopeError
impl Clone for EnvelopeError
impl Copy for EnvelopeError
Source§impl Debug for EnvelopeError
impl Debug for EnvelopeError
Source§impl Display for EnvelopeError
impl Display for EnvelopeError
impl Eq for EnvelopeError
Source§impl Error for EnvelopeError
impl Error for EnvelopeError
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 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<EnvelopeError> for HandshakeError
impl From<EnvelopeError> for HandshakeError
Source§fn from(source: EnvelopeError) -> Self
fn from(source: EnvelopeError) -> Self
Converts to this type from the input type.
Source§impl From<EnvelopeError> for NackError
impl From<EnvelopeError> for NackError
Source§fn from(source: EnvelopeError) -> Self
fn from(source: EnvelopeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EnvelopeError
impl PartialEq 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