Enum srt_protocol::packet::ReceivePacketError
source · pub enum ReceivePacketError {
Parse(PacketParseError),
Io(Error),
}Variants§
Parse(PacketParseError)
Io(Error)
Trait Implementations§
source§impl Debug for ReceivePacketError
impl Debug for ReceivePacketError
source§impl Display for ReceivePacketError
impl Display for ReceivePacketError
source§impl Error for ReceivePacketError
impl Error for ReceivePacketError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for ReceivePacketError
impl From<Error> for ReceivePacketError
source§impl From<PacketParseError> for ReceivePacketError
impl From<PacketParseError> for ReceivePacketError
source§fn from(error: PacketParseError) -> Self
fn from(error: PacketParseError) -> Self
Converts to this type from the input type.
source§impl PartialEq<ReceivePacketError> for ReceivePacketError
impl PartialEq<ReceivePacketError> for ReceivePacketError
impl Eq for ReceivePacketError
Auto Trait Implementations§
impl !RefUnwindSafe for ReceivePacketError
impl Send for ReceivePacketError
impl Sync for ReceivePacketError
impl Unpin for ReceivePacketError
impl !UnwindSafe for ReceivePacketError
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.