Struct netlink_packet_route::tc::TcActionGeneric
source · #[non_exhaustive]pub struct TcActionGeneric {
pub index: u32,
pub capab: u32,
pub action: TcActionType,
pub refcnt: i32,
pub bindcnt: i32,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.index: u32
§capab: u32
§action: TcActionType
§refcnt: i32
§bindcnt: i32
Trait Implementations§
source§impl Clone for TcActionGeneric
impl Clone for TcActionGeneric
source§fn clone(&self) -> TcActionGeneric
fn clone(&self) -> TcActionGeneric
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 TcActionGeneric
impl Debug for TcActionGeneric
source§impl Default for TcActionGeneric
impl Default for TcActionGeneric
source§fn default() -> TcActionGeneric
fn default() -> TcActionGeneric
Returns the “default value” for a type. Read more
source§impl Emitable for TcActionGeneric
impl Emitable for TcActionGeneric
source§impl<T: AsRef<[u8]>> Parseable<TcActionGenericBuffer<T>> for TcActionGeneric
impl<T: AsRef<[u8]>> Parseable<TcActionGenericBuffer<T>> for TcActionGeneric
source§fn parse(buf: &TcActionGenericBuffer<T>) -> Result<Self, DecodeError>
fn parse(buf: &TcActionGenericBuffer<T>) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq for TcActionGeneric
impl PartialEq for TcActionGeneric
source§fn eq(&self, other: &TcActionGeneric) -> bool
fn eq(&self, other: &TcActionGeneric) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TcActionGeneric
impl Eq for TcActionGeneric
impl StructuralEq for TcActionGeneric
impl StructuralPartialEq for TcActionGeneric
Auto Trait Implementations§
impl RefUnwindSafe for TcActionGeneric
impl Send for TcActionGeneric
impl Sync for TcActionGeneric
impl Unpin for TcActionGeneric
impl UnwindSafe for TcActionGeneric
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