pub enum PacketError {
BufferTooSmall,
}Expand description
Errors returned by packet view constructors.
Variants§
BufferTooSmall
Provided buffer is too small for the requested view.
Trait Implementations§
Source§impl Clone for PacketError
impl Clone for PacketError
Source§fn clone(&self) -> PacketError
fn clone(&self) -> PacketError
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 PacketError
impl Debug for PacketError
Source§impl Display for PacketError
impl Display for PacketError
Source§impl Error for PacketError
impl Error for PacketError
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<PacketError> for RunnerError
impl From<PacketError> for RunnerError
Source§fn from(value: PacketError) -> Self
fn from(value: PacketError) -> Self
Converts to this type from the input type.
Source§impl From<PacketError> for SessionError
Available on crate feature session only.
impl From<PacketError> for SessionError
Available on crate feature
session only.Source§fn from(value: PacketError) -> Self
fn from(value: PacketError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PacketError
impl PartialEq for PacketError
impl Eq for PacketError
impl StructuralPartialEq for PacketError
Auto Trait Implementations§
impl Freeze for PacketError
impl RefUnwindSafe for PacketError
impl Send for PacketError
impl Sync for PacketError
impl Unpin for PacketError
impl UnsafeUnpin for PacketError
impl UnwindSafe for PacketError
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