pub struct Ipv6NetworkLearnedParameters {
pub retrans_timer: Option<NonZeroDuration>,
}
Expand description
IPv6 device parameters that can be learned from router advertisements.
Fields§
§retrans_timer: Option<NonZeroDuration>
The time between retransmissions of Neighbor Solicitation messages to a neighbor when resolving the address or when probing the reachability of a neighbor.
See RetransTimer in RFC 4861 section 6.3.2 for more details.
Implementations§
Source§impl Ipv6NetworkLearnedParameters
impl Ipv6NetworkLearnedParameters
Sourcepub fn retrans_timer_or_default(&self) -> NonZeroDuration
pub fn retrans_timer_or_default(&self) -> NonZeroDuration
Returns the learned retransmission timer or the default stack value if a network-learned one isn’t available.
Trait Implementations§
Source§impl Default for Ipv6NetworkLearnedParameters
impl Default for Ipv6NetworkLearnedParameters
Source§fn default() -> Ipv6NetworkLearnedParameters
fn default() -> Ipv6NetworkLearnedParameters
Returns the “default value” for a type. Read more
Source§impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv6NetworkLearnedParameters> for DualStackIpDeviceState<BT>
impl<BT: IpDeviceStateBindingsTypes> OrderedLockAccess<Ipv6NetworkLearnedParameters> for DualStackIpDeviceState<BT>
Source§type Lock = RwLock<Ipv6NetworkLearnedParameters>
type Lock = RwLock<Ipv6NetworkLearnedParameters>
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 Freeze for Ipv6NetworkLearnedParameters
impl RefUnwindSafe for Ipv6NetworkLearnedParameters
impl Send for Ipv6NetworkLearnedParameters
impl Sync for Ipv6NetworkLearnedParameters
impl Unpin for Ipv6NetworkLearnedParameters
impl UnwindSafe for Ipv6NetworkLearnedParameters
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<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
impl<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
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