pub struct Ipv6AddressEntry<BT: IpDeviceStateBindingsTypes> { /* private fields */ }
Expand description
Data associated with an IPv6 address on an interface.
Implementations§
Source§impl<BT: IpDeviceStateBindingsTypes> Ipv6AddressEntry<BT>
impl<BT: IpDeviceStateBindingsTypes> Ipv6AddressEntry<BT>
Sourcepub fn new(
addr_sub: AddrSubnet<Ipv6Addr, Ipv6DeviceAddr>,
dad_state: Ipv6DadState<BT>,
config: Ipv6AddrConfig<BT::Instant>,
) -> Self
pub fn new( addr_sub: AddrSubnet<Ipv6Addr, Ipv6DeviceAddr>, dad_state: Ipv6DadState<BT>, config: Ipv6AddrConfig<BT::Instant>, ) -> Self
Constructs a new Ipv6AddressEntry
.
Sourcepub fn addr_sub(&self) -> &AddrSubnet<Ipv6Addr, Ipv6DeviceAddr>
pub fn addr_sub(&self) -> &AddrSubnet<Ipv6Addr, Ipv6DeviceAddr>
This entry’s address and subnet.
Trait Implementations§
Source§impl<BT: IpDeviceStateBindingsTypes> AssignedAddressState for Ipv6AddressEntry<BT>
impl<BT: IpDeviceStateBindingsTypes> AssignedAddressState for Ipv6AddressEntry<BT>
Source§fn addr(&self) -> IpDeviceAddr<Ipv6Addr>
fn addr(&self) -> IpDeviceAddr<Ipv6Addr>
Gets the address.
Source§fn addr_sub(&self) -> AddrSubnet<Ipv6Addr, Ipv6DeviceAddr>
fn addr_sub(&self) -> AddrSubnet<Ipv6Addr, Ipv6DeviceAddr>
Gets the address subnet this ID represents.
Source§impl<BT: IpDeviceStateBindingsTypes> Debug for Ipv6AddressEntry<BT>
impl<BT: IpDeviceStateBindingsTypes> Debug for Ipv6AddressEntry<BT>
Source§impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv6AddressState<<BT as InstantBindingsTypes>::Instant>> for Ipv6AddressEntry<BT>
impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv6AddressState<<BT as InstantBindingsTypes>::Instant>> for Ipv6AddressEntry<BT>
Source§type Lock = RwLock<Ipv6AddressState<<BT as InstantBindingsTypes>::Instant>>
type Lock = RwLock<Ipv6AddressState<<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
Source§impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv6DadState<BT>> for Ipv6AddressEntry<BT>
impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv6DadState<BT>> for Ipv6AddressEntry<BT>
Source§type Lock = Mutex<Ipv6DadState<BT>>
type Lock = Mutex<Ipv6DadState<BT>>
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 Ipv6AddressEntry<BT>
impl<BT> RefUnwindSafe for Ipv6AddressEntry<BT>
impl<BT> Send for Ipv6AddressEntry<BT>
impl<BT> Sync for Ipv6AddressEntry<BT>
impl<BT> Unpin for Ipv6AddressEntry<BT>
impl<BT> UnwindSafe for Ipv6AddressEntry<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