pub struct PacketParseError { /* private fields */ }Expand description
An error encountered while parsing a complete packet.
Implementations§
Source§impl PacketParseError
impl PacketParseError
Sourcepub const fn new(err: ParseError, label: &'static CRStr) -> Self
pub const fn new(err: ParseError, label: &'static CRStr) -> Self
Tag a ParseError with a location.
Sourcepub fn error(&self) -> &ParseError
pub fn error(&self) -> &ParseError
Return the underlying error.
Trait Implementations§
Source§impl Clone for PacketParseError
impl Clone for PacketParseError
Source§fn clone(&self) -> PacketParseError
fn clone(&self) -> PacketParseError
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 PacketParseError
impl Debug for PacketParseError
Source§impl Display for PacketParseError
impl Display for PacketParseError
Source§impl Error for PacketParseError
impl Error for PacketParseError
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<Infallible> for PacketParseError
impl From<Infallible> for PacketParseError
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<PacketParseError> for ParseError
impl From<PacketParseError> for ParseError
Source§fn from(value: PacketParseError) -> Self
fn from(value: PacketParseError) -> Self
Converts to this type from the input type.
Source§impl Hash for PacketParseError
impl Hash for PacketParseError
Source§impl PartialEq for PacketParseError
impl PartialEq for PacketParseError
impl Copy for PacketParseError
impl Eq for PacketParseError
impl StructuralPartialEq for PacketParseError
Auto Trait Implementations§
impl Freeze for PacketParseError
impl RefUnwindSafe for PacketParseError
impl Send for PacketParseError
impl Sync for PacketParseError
impl Unpin for PacketParseError
impl UnwindSafe for PacketParseError
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