pub struct Ipv4AddressEntry<BT: IpDeviceStateBindingsTypes> { /* private fields */ }
Expand description
Data associated with an IPv4 address on an interface.
Implementations§
Source§impl<BT: IpDeviceStateBindingsTypes> Ipv4AddressEntry<BT>
impl<BT: IpDeviceStateBindingsTypes> Ipv4AddressEntry<BT>
Sourcepub fn new(
addr_sub: AddrSubnet<Ipv4Addr, Ipv4DeviceAddr>,
config: Ipv4AddrConfig<BT::Instant>,
) -> Self
pub fn new( addr_sub: AddrSubnet<Ipv4Addr, Ipv4DeviceAddr>, config: Ipv4AddrConfig<BT::Instant>, ) -> Self
Constructs a new Ipv4AddressEntry
.
Sourcepub fn addr_sub(&self) -> &AddrSubnet<Ipv4Addr, Ipv4DeviceAddr>
pub fn addr_sub(&self) -> &AddrSubnet<Ipv4Addr, Ipv4DeviceAddr>
This entry’s address and subnet.
Trait Implementations§
Source§impl<BT: IpDeviceStateBindingsTypes> AssignedAddressState for Ipv4AddressEntry<BT>
impl<BT: IpDeviceStateBindingsTypes> AssignedAddressState for Ipv4AddressEntry<BT>
Source§fn addr(&self) -> IpDeviceAddr<Ipv4Addr>
fn addr(&self) -> IpDeviceAddr<Ipv4Addr>
Gets the address.
Source§fn addr_sub(&self) -> AddrSubnet<Ipv4Addr, Ipv4DeviceAddr>
fn addr_sub(&self) -> AddrSubnet<Ipv4Addr, Ipv4DeviceAddr>
Gets the address subnet this ID represents.
Source§impl<BT: IpDeviceStateBindingsTypes> Debug for Ipv4AddressEntry<BT>
impl<BT: IpDeviceStateBindingsTypes> Debug for Ipv4AddressEntry<BT>
Source§impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv4AddressState<<BT as InstantBindingsTypes>::Instant>> for Ipv4AddressEntry<BT>
impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv4AddressState<<BT as InstantBindingsTypes>::Instant>> for Ipv4AddressEntry<BT>
Source§type Lock = RwLock<Ipv4AddressState<<BT as InstantBindingsTypes>::Instant>>
type Lock = RwLock<Ipv4AddressState<<BT as InstantBindingsTypes>::Instant>>
The lock type that observes ordering. Read more
Source§fn ordered_lock_access(&self) -> OrderedLockRef<'_, Self::Lock>
fn ordered_lock_access(&self) -> OrderedLockRef<'_, Self::Lock>
Returns a borrow to the order-aware lock. Read more
Auto Trait Implementations§
impl<BT> !Freeze for Ipv4AddressEntry<BT>
impl<BT> RefUnwindSafe for Ipv4AddressEntry<BT>
impl<BT> Send for Ipv4AddressEntry<BT>
impl<BT> Sync for Ipv4AddressEntry<BT>
impl<BT> Unpin for Ipv4AddressEntry<BT>
impl<BT> UnwindSafe for Ipv4AddressEntry<BT>
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
Source§impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
Source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
Source§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
Source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
Source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more