pub enum IpStackError {
UnsupportedTransportProtocol,
InvalidPacket,
ValueTooBigErrorU16(ValueTooBigError<u16>),
ValueTooBigErrorUsize(ValueTooBigError<usize>),
InvalidTcpPacket,
IoError(Error),
AcceptError,
SendError(Box<SendError<IpStackStream>>),
InvalidMtuSize(u16),
}Expand description
Error types for the IP stack.
This enum represents all possible errors that can occur when working with the IP stack.
Variants§
UnsupportedTransportProtocol
The transport protocol is not supported.
InvalidPacket
The packet is invalid or malformed.
ValueTooBigErrorU16(ValueTooBigError<u16>)
A value is too large to fit in a u16.
ValueTooBigErrorUsize(ValueTooBigError<usize>)
A value is too large to fit in a usize.
InvalidTcpPacket
The TCP packet is invalid.
IoError(Error)
An I/O error occurred.
AcceptError
Error accepting a new stream.
SendError(Box<SendError<IpStackStream>>)
Error sending data through a channel.
InvalidMtuSize(u16)
Invalid MTU size. The minimum MTU is 1280 bytes to comply with IPv6 standards.
Trait Implementations§
Source§impl Debug for IpStackError
impl Debug for IpStackError
Source§impl Display for IpStackError
impl Display for IpStackError
Source§impl Error for IpStackError
impl Error for IpStackError
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<Box<SendError<IpStackStream>>> for IpStackError
impl From<Box<SendError<IpStackStream>>> for IpStackError
Source§impl From<Error> for IpStackError
impl From<Error> for IpStackError
Source§impl From<IpStackError> for Error
impl From<IpStackError> for Error
Source§fn from(e: IpStackError) -> Self
fn from(e: IpStackError) -> Self
Converts to this type from the input type.
Source§impl From<SendError<IpStackStream>> for IpStackError
impl From<SendError<IpStackStream>> for IpStackError
Source§fn from(e: SendError<IpStackStream>) -> Self
fn from(e: SendError<IpStackStream>) -> Self
Converts to this type from the input type.
Source§impl From<ValueTooBigError<u16>> for IpStackError
impl From<ValueTooBigError<u16>> for IpStackError
Source§fn from(source: ValueTooBigError<u16>) -> Self
fn from(source: ValueTooBigError<u16>) -> Self
Converts to this type from the input type.
Source§impl From<ValueTooBigError<usize>> for IpStackError
impl From<ValueTooBigError<usize>> for IpStackError
Source§fn from(source: ValueTooBigError<usize>) -> Self
fn from(source: ValueTooBigError<usize>) -> Self
Converts to this type from the input type.
impl Send for IpStackError
impl Sync for IpStackError
Auto Trait Implementations§
impl Freeze for IpStackError
impl !RefUnwindSafe for IpStackError
impl Unpin for IpStackError
impl !UnwindSafe for IpStackError
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