pub struct DltsStep<'a> {
pub interface: &'a str,
}Expand description
In the DLTs step, Wireshark asks the extcap program for the DLT for each interface. DLT stands for data link type, and is used to determine how Wireshark analyzes (dissects) the given packets.
Despite this step being named with plurals (DLTs) by extcap, only one DLT is
expected for each interface. Corresponds to the --extcap-dlts argument in
extcap.
Fields§
§interface: &'a strThe interface to print the DLT for.
Implementations§
Source§impl<'a> DltsStep<'a>
impl<'a> DltsStep<'a>
Sourcepub fn print_dlt(&self, interface: &Interface)
pub fn print_dlt(&self, interface: &Interface)
Print the DLT for the given interface. If you have the list of
interfaces from InterfacesStep, consider using
print_from_interfaces instead.
Sourcepub fn print_from_interfaces(
&self,
interfaces: &[&Interface],
) -> Result<(), PrintDltError>
pub fn print_from_interfaces( &self, interfaces: &[&Interface], ) -> Result<(), PrintDltError>
Finds the interface within interfaces that matches the given request
and prints out its DLT. Typically interfaces will be the same list
given to InterfacesStep::list_interfaces.
Auto Trait Implementations§
impl<'a> Freeze for DltsStep<'a>
impl<'a> RefUnwindSafe for DltsStep<'a>
impl<'a> Send for DltsStep<'a>
impl<'a> Sync for DltsStep<'a>
impl<'a> Unpin for DltsStep<'a>
impl<'a> UnwindSafe for DltsStep<'a>
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