Struct ethtool::EthtoolMessage
source · pub struct EthtoolMessage {
pub cmd: EthtoolCmd,
pub nlas: Vec<EthtoolAttr>,
}
Fields§
§cmd: EthtoolCmd
§nlas: Vec<EthtoolAttr>
Implementations§
source§impl EthtoolMessage
impl EthtoolMessage
pub fn new_pause_get(iface_name: Option<&str>) -> Self
pub fn new_feature_get(iface_name: Option<&str>) -> Self
pub fn new_link_mode_get(iface_name: Option<&str>) -> Self
pub fn new_ring_get(iface_name: Option<&str>) -> Self
pub fn new_coalesce_get(iface_name: Option<&str>) -> Self
pub fn new_tsinfo_get(iface_name: Option<&str>) -> Self
Trait Implementations§
source§impl Clone for EthtoolMessage
impl Clone for EthtoolMessage
source§fn clone(&self) -> EthtoolMessage
fn clone(&self) -> EthtoolMessage
Returns a copy 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 EthtoolMessage
impl Debug for EthtoolMessage
source§impl Emitable for EthtoolMessage
impl Emitable for EthtoolMessage
source§impl GenlFamily for EthtoolMessage
impl GenlFamily for EthtoolMessage
source§fn family_name() -> &'static str
fn family_name() -> &'static str
Return the unique family name registered in the kernel Read more
source§impl ParseableParametrized<[u8], GenlHeader> for EthtoolMessage
impl ParseableParametrized<[u8], GenlHeader> for EthtoolMessage
source§fn parse_with_param(
buffer: &[u8],
header: GenlHeader
) -> Result<Self, DecodeError>
fn parse_with_param( buffer: &[u8], header: GenlHeader ) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq<EthtoolMessage> for EthtoolMessage
impl PartialEq<EthtoolMessage> for EthtoolMessage
source§fn eq(&self, other: &EthtoolMessage) -> bool
fn eq(&self, other: &EthtoolMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for EthtoolMessage
impl StructuralEq for EthtoolMessage
impl StructuralPartialEq for EthtoolMessage
Auto Trait Implementations§
impl RefUnwindSafe for EthtoolMessage
impl Send for EthtoolMessage
impl Sync for EthtoolMessage
impl Unpin for EthtoolMessage
impl UnwindSafe for EthtoolMessage
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