Struct lib_sendpacket::Ether
[−]
[src]
pub struct Ether { pub src_mac: Mac, pub dst_mac: Mac, }
Fields
src_mac: Mac
dst_mac: Mac
Methods
impl Ether
[src]
Trait Implementations
impl Clone for Ether
[src]
fn clone(&self) -> Ether
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Ether
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Ether
[src]
fn eq(&self, __arg_0: &Ether) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Ether) -> bool
[src]
This method tests for !=
.
impl Eq for Ether
[src]
impl PackageHeader<EtherType> for Ether
[src]
impl PackageHeader<()> for Ether
[src]
impl Div<MPLS> for Ether
[src]
type Output = L2
The resulting type after applying the /
operator.
fn div(self, rhs: MPLS) -> Self::Output
[src]
Performs the /
operation.
impl Div<Ip> for Ether
[src]
type Output = L3
The resulting type after applying the /
operator.
fn div(self, rhs: Ip) -> Self::Output
[src]
Performs the /
operation.