pub enum UdpDecodeError {
TooShort {
len: usize,
},
UnsupportedType(u8),
Protobuf {
message_type: UdpMessageType,
payload_len: usize,
source: DecodeError,
},
}Expand description
Errors from decoding a UDP envelope.
Variants§
TooShort
Empty, or only the header byte with no payload.
REF: MumbleProtocol.cpp : if (data.size() <= 1) return false;.
UnsupportedType(u8)
The header byte is neither Audio (0) nor Ping (1). This includes every legacy-format packet, which is deliberately unsupported (ADR-0001).
Protobuf
The payload was not a valid protobuf encoding of its declared message.
Trait Implementations§
Source§impl Debug for UdpDecodeError
impl Debug for UdpDecodeError
Source§impl Display for UdpDecodeError
impl Display for UdpDecodeError
Source§impl Error for UdpDecodeError
impl Error for UdpDecodeError
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()
Auto Trait Implementations§
impl Freeze for UdpDecodeError
impl RefUnwindSafe for UdpDecodeError
impl Send for UdpDecodeError
impl Sync for UdpDecodeError
impl Unpin for UdpDecodeError
impl UnwindSafe for UdpDecodeError
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