pub enum TransportError<E> {
Sender(SenderError),
Receiver(ReceiverError),
Network(E),
Packet(SrsppPacketError),
}Expand description
Errors from the SRSPP CFS transport layer.
Variants§
Sender(SenderError)
The sender state machine reported an error.
Receiver(ReceiverError)
The receiver state machine reported an error.
Network(E)
The underlying network failed.
Packet(SrsppPacketError)
A packet could not be built or parsed.
Trait Implementations§
Source§impl<E: Clone> Clone for TransportError<E>
impl<E: Clone> Clone for TransportError<E>
Source§fn clone(&self) -> TransportError<E>
fn clone(&self) -> TransportError<E>
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<E: Debug> Debug for TransportError<E>
impl<E: Debug> Debug for TransportError<E>
Source§impl<E> Display for TransportError<E>where
E: Display,
impl<E> Display for TransportError<E>where
E: Display,
Source§impl<E> Error for TransportError<E>
impl<E> Error for TransportError<E>
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<ReceiverError> for TransportError<E>
impl<E> From<ReceiverError> for TransportError<E>
Source§fn from(source: ReceiverError) -> Self
fn from(source: ReceiverError) -> Self
Converts to this type from the input type.
Source§impl<E> From<SenderError> for TransportError<E>
impl<E> From<SenderError> for TransportError<E>
Source§fn from(source: SenderError) -> Self
fn from(source: SenderError) -> Self
Converts to this type from the input type.
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.
Auto Trait Implementations§
impl<E> Freeze for TransportError<E>where
E: Freeze,
impl<E> RefUnwindSafe for TransportError<E>where
E: RefUnwindSafe,
impl<E> Send for TransportError<E>where
E: Send,
impl<E> Sync for TransportError<E>where
E: Sync,
impl<E> Unpin for TransportError<E>where
E: Unpin,
impl<E> UnsafeUnpin for TransportError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for TransportError<E>where
E: UnwindSafe,
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