pub struct AsciiUnexpectedPacketError(/* private fields */);Available on crate feature
ascii only.Expand description
An unexpected packet was received.
There are many reasons a packet may be considered unexpected, including but not limited to:
- it had the wrong target
- it had the wrong message ID
- it was the wrong kind of packet
- it did not properly continue a previous packet
Implementations§
Trait Implementations§
Source§impl AsRef<Packet> for AsciiUnexpectedPacketError
impl AsRef<Packet> for AsciiUnexpectedPacketError
Source§impl Debug for AsciiUnexpectedPacketError
impl Debug for AsciiUnexpectedPacketError
Source§impl Display for AsciiUnexpectedPacketError
impl Display for AsciiUnexpectedPacketError
Source§impl Error for AsciiUnexpectedPacketError
impl Error for AsciiUnexpectedPacketError
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 From<AsciiUnexpectedPacketError> for Packet
impl From<AsciiUnexpectedPacketError> for Packet
Source§fn from(other: AsciiUnexpectedPacketError) -> Self
fn from(other: AsciiUnexpectedPacketError) -> Self
Consume the error and return the response associated with it.
Source§impl From<AsciiUnexpectedPacketError> for AsciiError
impl From<AsciiUnexpectedPacketError> for AsciiError
Source§fn from(other: AsciiUnexpectedPacketError) -> Self
fn from(other: AsciiUnexpectedPacketError) -> Self
Converts to this type from the input type.
Source§impl From<AsciiUnexpectedPacketError> for Error
Available on crate feature binary only.
impl From<AsciiUnexpectedPacketError> for Error
Available on crate feature
binary only.Source§fn from(other: AsciiUnexpectedPacketError) -> Self
fn from(other: AsciiUnexpectedPacketError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for AsciiUnexpectedPacketError
Source§impl TryFrom<AsciiError> for AsciiUnexpectedPacketError
impl TryFrom<AsciiError> for AsciiUnexpectedPacketError
Source§type Error = AsciiError
type Error = AsciiError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for AsciiUnexpectedPacketError
impl RefUnwindSafe for AsciiUnexpectedPacketError
impl Send for AsciiUnexpectedPacketError
impl Sync for AsciiUnexpectedPacketError
impl Unpin for AsciiUnexpectedPacketError
impl UnsafeUnpin for AsciiUnexpectedPacketError
impl UnwindSafe for AsciiUnexpectedPacketError
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