Enum netstack3_core::ip::device::IpDeviceEvent
source · pub enum IpDeviceEvent<DeviceId, I: Ip, Instant> {
AddressAdded {
device: DeviceId,
addr: AddrSubnet<I::Addr>,
state: IpAddressState,
valid_until: Lifetime<Instant>,
},
AddressRemoved {
device: DeviceId,
addr: SpecifiedAddr<I::Addr>,
reason: RemovedReason,
},
AddressStateChanged {
device: DeviceId,
addr: SpecifiedAddr<I::Addr>,
state: IpAddressState,
},
EnabledChanged {
device: DeviceId,
ip_enabled: bool,
},
}
Expand description
Events emitted from IP devices.
Variants§
AddressAdded
Fields
§
device: DeviceId
The device.
§
addr: AddrSubnet<I::Addr>
The new address.
§
state: IpAddressState
Initial address state.
Address was assigned.
AddressRemoved
Fields
§
device: DeviceId
The device.
§
addr: SpecifiedAddr<I::Addr>
The removed address.
§
reason: RemovedReason
The reason the address was removed.
Address was unassigned.
AddressStateChanged
Fields
§
device: DeviceId
The device.
§
addr: SpecifiedAddr<I::Addr>
The address whose state was changed.
§
state: IpAddressState
The new address state.
Address state changed.
EnabledChanged
Fields
§
device: DeviceId
The device.
IP was enabled/disabled on the device
Trait Implementations§
source§impl<DeviceId: Debug, I: Debug + Ip, Instant: Debug> Debug for IpDeviceEvent<DeviceId, I, Instant>where
I::Addr: Debug,
impl<DeviceId: Debug, I: Debug + Ip, Instant: Debug> Debug for IpDeviceEvent<DeviceId, I, Instant>where I::Addr: Debug,
source§impl<DeviceId: Hash, I: Hash + Ip, Instant: Hash> Hash for IpDeviceEvent<DeviceId, I, Instant>where
I::Addr: Hash,
impl<DeviceId: Hash, I: Hash + Ip, Instant: Hash> Hash for IpDeviceEvent<DeviceId, I, Instant>where I::Addr: Hash,
source§impl<DeviceId: PartialEq, I: PartialEq + Ip, Instant: PartialEq> PartialEq<IpDeviceEvent<DeviceId, I, Instant>> for IpDeviceEvent<DeviceId, I, Instant>where
I::Addr: PartialEq,
impl<DeviceId: PartialEq, I: PartialEq + Ip, Instant: PartialEq> PartialEq<IpDeviceEvent<DeviceId, I, Instant>> for IpDeviceEvent<DeviceId, I, Instant>where I::Addr: PartialEq,
source§fn eq(&self, other: &IpDeviceEvent<DeviceId, I, Instant>) -> bool
fn eq(&self, other: &IpDeviceEvent<DeviceId, I, Instant>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<DeviceId: Eq, I: Eq + Ip, Instant: Eq> Eq for IpDeviceEvent<DeviceId, I, Instant>where I::Addr: Eq,
impl<DeviceId, I: Ip, Instant> StructuralEq for IpDeviceEvent<DeviceId, I, Instant>
impl<DeviceId, I: Ip, Instant> StructuralPartialEq for IpDeviceEvent<DeviceId, I, Instant>
Auto Trait Implementations§
impl<DeviceId, I, Instant> RefUnwindSafe for IpDeviceEvent<DeviceId, I, Instant>where DeviceId: RefUnwindSafe, Instant: RefUnwindSafe, <I as Ip>::Addr: RefUnwindSafe,
impl<DeviceId, I, Instant> Send for IpDeviceEvent<DeviceId, I, Instant>where DeviceId: Send, Instant: Send,
impl<DeviceId, I, Instant> Sync for IpDeviceEvent<DeviceId, I, Instant>where DeviceId: Sync, Instant: Sync,
impl<DeviceId, I, Instant> Unpin for IpDeviceEvent<DeviceId, I, Instant>where DeviceId: Unpin, Instant: Unpin, <I as Ip>::Addr: Unpin,
impl<DeviceId, I, Instant> UnwindSafe for IpDeviceEvent<DeviceId, I, Instant>where DeviceId: UnwindSafe, Instant: UnwindSafe, <I as Ip>::Addr: UnwindSafe,
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