Struct netstack3_ip::device::Ipv4AddressEntry
source · 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> AssignedAddress<Ipv4Addr> for Ipv4AddressEntry<BT>
impl<BT: IpDeviceStateBindingsTypes> AssignedAddress<Ipv4Addr> for Ipv4AddressEntry<BT>
source§fn addr(&self) -> IpDeviceAddr<Ipv4Addr>
fn addr(&self) -> IpDeviceAddr<Ipv4Addr>
Gets the address.
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>
§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