pub enum ParsePingError {
InvalidSize,
InvalidHeader,
}Expand description
Error during parsing of a PingPacket.
Variants§
InvalidSize
Ping packets must always be 12 bytes in size.
InvalidHeader
Ping packets must have an all zero header of 4 bytes.
Trait Implementations§
Source§impl Clone for ParsePingError
impl Clone for ParsePingError
Source§fn clone(&self) -> ParsePingError
fn clone(&self) -> ParsePingError
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 ParsePingError
impl Debug for ParsePingError
Source§impl PartialEq for ParsePingError
impl PartialEq for ParsePingError
impl StructuralPartialEq for ParsePingError
Auto Trait Implementations§
impl Freeze for ParsePingError
impl RefUnwindSafe for ParsePingError
impl Send for ParsePingError
impl Sync for ParsePingError
impl Unpin for ParsePingError
impl UnwindSafe for ParsePingError
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