pub enum DeviceWatcherEvent {
OnPhyAdded {
phy_id: u16,
},
OnPhyRemoved {
phy_id: u16,
},
OnIfaceAdded {
iface_id: u16,
},
OnIfaceRemoved {
iface_id: u16,
},
}
Variants§
Implementations§
Source§impl DeviceWatcherEvent
impl DeviceWatcherEvent
pub fn into_on_phy_added(self) -> Option<u16>
pub fn into_on_phy_removed(self) -> Option<u16>
pub fn into_on_iface_added(self) -> Option<u16>
pub fn into_on_iface_removed(self) -> Option<u16>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceWatcherEvent
impl RefUnwindSafe for DeviceWatcherEvent
impl Send for DeviceWatcherEvent
impl Sync for DeviceWatcherEvent
impl Unpin for DeviceWatcherEvent
impl UnwindSafe for DeviceWatcherEvent
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