pub enum SrsppError {
BufferFull,
WindowFull,
Network(String),
PacketError(String),
SenderError(SenderError),
ReceiverError(ReceiverError),
}Expand description
Error type for srspp operations.
Variants§
BufferFull
Send buffer is full.
WindowFull
Window is full (too many unacked packets).
Network(String)
Link error.
PacketError(String)
Packet error.
SenderError(SenderError)
Sender error.
ReceiverError(ReceiverError)
Receiver error.
Trait Implementations§
Source§impl Debug for SrsppError
impl Debug for SrsppError
Source§impl Display for SrsppError
impl Display for SrsppError
Source§impl Error for SrsppError
impl Error for SrsppError
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<ReceiverError> for SrsppError
impl From<ReceiverError> for SrsppError
Source§fn from(source: ReceiverError) -> Self
fn from(source: ReceiverError) -> Self
Converts to this type from the input type.
Source§impl From<SenderError> for SrsppError
impl From<SenderError> for SrsppError
Source§fn from(source: SenderError) -> Self
fn from(source: SenderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SrsppError
impl RefUnwindSafe for SrsppError
impl Send for SrsppError
impl Sync for SrsppError
impl Unpin for SrsppError
impl UnsafeUnpin for SrsppError
impl UnwindSafe for SrsppError
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