Enum rshark::Error [] [src]

pub enum Error {
    Underflow {
        expected: usize,
        have: usize,
        subject: String,
    },
    InvalidData(String),
}

An error related to packet dissection (underflow, bad value, etc.).

Variants

Underflow

Fields

expected
have
subject
InvalidData

Trait Implementations

impl Display for Error

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for Error

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Error

fn clone(&self) -> Error

1.0.0fn clone_from(&mut self, source: &Self)