pub enum DatalinkFormat {
Ethernet,
RawIp,
Null,
}
Expand description
Datalink format types supported
Variants§
Ethernet
Standard Ethernet frame (14-byte header)
RawIp
Raw IP packet (no datalink header)
Null
NULL datalink with 4-byte header (0x1e 0x00 …)
Trait Implementations§
Source§impl Clone for DatalinkFormat
impl Clone for DatalinkFormat
Source§fn clone(&self) -> DatalinkFormat
fn clone(&self) -> DatalinkFormat
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 DatalinkFormat
impl Debug for DatalinkFormat
Source§impl PartialEq for DatalinkFormat
impl PartialEq for DatalinkFormat
impl Copy for DatalinkFormat
impl StructuralPartialEq for DatalinkFormat
Auto Trait Implementations§
impl Freeze for DatalinkFormat
impl RefUnwindSafe for DatalinkFormat
impl Send for DatalinkFormat
impl Sync for DatalinkFormat
impl Unpin for DatalinkFormat
impl UnwindSafe for DatalinkFormat
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