pub enum SrsppPacketError {
BufferTooSmall {
required: usize,
provided: usize,
},
InvalidPacketType {
value: u8,
},
PayloadTooLarge {
max: usize,
provided: usize,
},
}Expand description
Errors that can occur when constructing or parsing SRSPP packets.
Variants§
BufferTooSmall
Buffer is too small for the packet.
Fields
InvalidPacketType
Packet type byte is not a valid SRSPP type.
PayloadTooLarge
Payload exceeds the maximum allowed size.
Trait Implementations§
Source§impl Clone for SrsppPacketError
impl Clone for SrsppPacketError
Source§fn clone(&self) -> SrsppPacketError
fn clone(&self) -> SrsppPacketError
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 SrsppPacketError
impl Debug for SrsppPacketError
Source§impl Display for SrsppPacketError
impl Display for SrsppPacketError
Source§impl Error for SrsppPacketError
impl Error for SrsppPacketError
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<E> From<SrsppPacketError> for TransportError<E>
impl<E> From<SrsppPacketError> for TransportError<E>
Source§fn from(source: SrsppPacketError) -> Self
fn from(source: SrsppPacketError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SrsppPacketError
impl PartialEq for SrsppPacketError
impl Copy for SrsppPacketError
impl Eq for SrsppPacketError
impl StructuralPartialEq for SrsppPacketError
Auto Trait Implementations§
impl Freeze for SrsppPacketError
impl RefUnwindSafe for SrsppPacketError
impl Send for SrsppPacketError
impl Sync for SrsppPacketError
impl Unpin for SrsppPacketError
impl UnsafeUnpin for SrsppPacketError
impl UnwindSafe for SrsppPacketError
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