pub struct ForeignDeviceTable { /* private fields */ }Expand description
Foreign device table manager
Implementations§
Source§impl ForeignDeviceTable
impl ForeignDeviceTable
Sourcepub fn register(&mut self, address: NetworkAddress, ttl: u16) -> Result<()>
pub fn register(&mut self, address: NetworkAddress, ttl: u16) -> Result<()>
Register a foreign device
Sourcepub fn delete(&mut self, address: &NetworkAddress) -> Result<()>
pub fn delete(&mut self, address: &NetworkAddress) -> Result<()>
Delete a foreign device
Sourcepub fn update_times(&mut self, elapsed_seconds: u16)
pub fn update_times(&mut self, elapsed_seconds: u16)
Update remaining times (called periodically)
Sourcepub fn get_active_devices(&self) -> Vec<&NetworkAddress>
pub fn get_active_devices(&self) -> Vec<&NetworkAddress>
Get all active foreign devices
Sourcepub fn is_registered(&self, address: &NetworkAddress) -> bool
pub fn is_registered(&self, address: &NetworkAddress) -> bool
Check if a device is registered
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ForeignDeviceTable
impl RefUnwindSafe for ForeignDeviceTable
impl Send for ForeignDeviceTable
impl Sync for ForeignDeviceTable
impl Unpin for ForeignDeviceTable
impl UnsafeUnpin for ForeignDeviceTable
impl UnwindSafe for ForeignDeviceTable
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