Struct nispor::BondAdInfo
source · #[non_exhaustive]pub struct BondAdInfo {
pub aggregator: u16,
pub num_ports: u16,
pub actor_key: u16,
pub partner_key: u16,
pub partner_mac: String,
}
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.aggregator: u16
§num_ports: u16
§actor_key: u16
§partner_key: u16
§partner_mac: String
Trait Implementations§
source§impl Clone for BondAdInfo
impl Clone for BondAdInfo
source§fn clone(&self) -> BondAdInfo
fn clone(&self) -> BondAdInfo
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 BondAdInfo
impl Debug for BondAdInfo
source§impl Default for BondAdInfo
impl Default for BondAdInfo
source§fn default() -> BondAdInfo
fn default() -> BondAdInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BondAdInfo
impl<'de> Deserialize<'de> for BondAdInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<&[BondAdInfo]> for BondAdInfo
impl From<&[BondAdInfo]> for BondAdInfo
source§fn from(nlas: &[BondAdInfo]) -> Self
fn from(nlas: &[BondAdInfo]) -> Self
Converts to this type from the input type.
source§impl PartialEq for BondAdInfo
impl PartialEq for BondAdInfo
source§fn eq(&self, other: &BondAdInfo) -> bool
fn eq(&self, other: &BondAdInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BondAdInfo
impl Serialize for BondAdInfo
impl Eq for BondAdInfo
impl StructuralPartialEq for BondAdInfo
Auto Trait Implementations§
impl Freeze for BondAdInfo
impl RefUnwindSafe for BondAdInfo
impl Send for BondAdInfo
impl Sync for BondAdInfo
impl Unpin for BondAdInfo
impl UnwindSafe for BondAdInfo
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