pub struct Device {
pub node_id: u64,
pub address: String,
pub name: String,
pub sii_ms: Option<u32>,
pub sai_ms: Option<u32>,
pub sat_ms: Option<u32>,
}Fields§
§node_id: u64§address: String§name: String§sii_ms: Option<u32>MRP idle interval advertised by the device (SII, milliseconds)
sai_ms: Option<u32>MRP active interval advertised by the device (SAI, milliseconds)
sat_ms: Option<u32>MRP active threshold advertised by the device (SAT, milliseconds)
Implementations§
Source§impl Device
impl Device
Sourcepub fn mrp_params(&self) -> MrpParameters
pub fn mrp_params(&self) -> MrpParameters
MRP timing parameters from the stored SII/SAI/SAT values, with spec defaults for missing ones.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Device
impl<'de> Deserialize<'de> for Device
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
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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