pub struct EmbassyInterfaceStatus { /* private fields */ }Implementations§
Source§impl EmbassyInterfaceStatus
impl EmbassyInterfaceStatus
pub const fn new(id: InterfaceId, connection: ConnectionState) -> Self
pub fn set_connection(&self, connection: ConnectionState)
pub fn set_id(&self, id: InterfaceId)
pub fn enable(&self)
pub fn disable(&self)
pub fn toggle_enabled(&self)
pub fn is_enabled(&self) -> bool
pub async fn wait_until_enabled(&self)
pub async fn wait_until_disabled(&self)
pub fn add_rx(&self, bytes: u64)
pub fn add_tx(&self, bytes: u64)
pub fn set_airtime(&self, utilization: AirtimeUtilization)
pub fn set_transfer_rates(&self, rates: TransferRates)
Trait Implementations§
Source§impl InterfaceStatus for EmbassyInterfaceStatus
impl InterfaceStatus for EmbassyInterfaceStatus
fn id(&self) -> InterfaceId
fn connection(&self) -> ConnectionState
fn rx_bytes(&self) -> u64
fn tx_bytes(&self) -> u64
Source§fn airtime(&self) -> Option<AirtimeUtilization>
fn airtime(&self) -> Option<AirtimeUtilization>
None until the interface publishes — a link with no declared bitrate never does.fn transfer_rates(&self) -> Option<TransferRates>
fn failure_reason(&self) -> Option<&'static str>
Auto Trait Implementations§
impl !Freeze for EmbassyInterfaceStatus
impl !RefUnwindSafe for EmbassyInterfaceStatus
impl Send for EmbassyInterfaceStatus
impl Sync for EmbassyInterfaceStatus
impl Unpin for EmbassyInterfaceStatus
impl UnsafeUnpin for EmbassyInterfaceStatus
impl UnwindSafe for EmbassyInterfaceStatus
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