Enum etherparse::ValueError [−][src]
Errors in the given data
Variants
Ipv4OptionsLengthBad(usize)
Error when the ipv4 options length is too big or not aligned (cannot be bigger then 40 bytes and must be a multiple of 4 bytes).
Ipv4PayloadLengthTooLarge(usize)
Error when a given payload & ipv4 header is bigger then what fits inside an ipv4 total_length field.
Ipv6PayloadLengthTooLarge(usize)
Error when a given payload & ipv6 header block is bigger then what fits inside an ipv6 payload_length field.
UdpPayloadLengthTooLarge(usize)
Error when a given payload is bigger then what fits inside an udp packet Note that a the maximum payload size, as far as udp is conceirned, is max_value(u16) - 8. The 8 is for the size of the udp header itself.
TcpLengthTooLarge(usize)
Error when a given payload + tcp header options is bigger then what fits inside an tcp packet Note that a the maximum size, as far as tcp is conceirned, is max_value(u16) - tcp_header.data_offset()*4. The data_offset is for the size of the udp header itself.
Error when a u8 field in a header has a larger value then supported.
Fields of U8TooLarge
Error when a u16 field in a header has a larger value then supported.
Fields of U16TooLarge
Error when a u32 field in a header has a larger value then supported.
Fields of U32TooLarge
Trait Implementations
impl Clone for ValueError
[src]
fn clone(&self) -> ValueError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ValueError
[src]
impl Display for ValueError
[src]
impl Eq for ValueError
[src]
impl Error for ValueError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<ValueError> for WriteError
[src]
fn from(err: ValueError) -> WriteError
[src]
impl PartialEq<ValueError> for ValueError
[src]
fn eq(&self, other: &ValueError) -> bool
[src]
fn ne(&self, other: &ValueError) -> bool
[src]
impl StructuralEq for ValueError
[src]
impl StructuralPartialEq for ValueError
[src]
Auto Trait Implementations
impl RefUnwindSafe for ValueError
[src]
impl Send for ValueError
[src]
impl Sync for ValueError
[src]
impl Unpin for ValueError
[src]
impl UnwindSafe for ValueError
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,