pub enum CodecError {
UnknownMessageType(u64),
UnexpectedEnd,
MessageTooLong(usize),
VarInt(VarIntError),
Kvp(KvpError),
InvalidField,
InvalidNamespaceTupleSize(usize),
TrackNameTooLong,
ReasonPhraseTooLong,
GoAwayUriTooLong,
UnsupportedDraft(String),
}Expand description
Errors produced during MoQT message encoding and decoding.
Variants§
UnknownMessageType(u64)
Unknown or unsupported message type identifier.
UnexpectedEnd
Not enough bytes in the buffer to complete decoding.
MessageTooLong(usize)
Control message payload exceeds MAX_MESSAGE_LENGTH.
VarInt(VarIntError)
Variable-length integer encoding/decoding error.
Kvp(KvpError)
Key-value pair encoding/decoding error.
InvalidField
A decoded field value is not valid for its type.
InvalidNamespaceTupleSize(usize)
Namespace tuple element count is outside the 1..=32 range.
TrackNameTooLong
Full track name exceeds MAX_FULL_TRACK_NAME_LENGTH.
ReasonPhraseTooLong
Reason phrase exceeds MAX_REASON_PHRASE_LENGTH.
GoAwayUriTooLong
GOAWAY URI exceeds MAX_GOAWAY_URI_LENGTH.
UnsupportedDraft(String)
Draft not implemented or not enabled via feature flag.
Trait Implementations§
Source§impl Clone for CodecError
impl Clone for CodecError
Source§fn clone(&self) -> CodecError
fn clone(&self) -> CodecError
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 CodecError
impl Debug for CodecError
Source§impl Display for CodecError
impl Display 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<KvpError> for CodecError
impl From<KvpError> for CodecError
Source§impl From<VarIntError> for CodecError
impl From<VarIntError> for CodecError
Source§fn from(source: VarIntError) -> Self
fn from(source: VarIntError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CodecError
impl PartialEq for CodecError
impl Eq 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