pub struct Icmpv4StateBuilder { /* private fields */ }
Expand description
A builder for ICMPv4 state.
Implementations§
Source§impl Icmpv4StateBuilder
impl Icmpv4StateBuilder
Sourcepub fn send_timestamp_reply(&mut self, send_timestamp_reply: bool) -> &mut Self
pub fn send_timestamp_reply(&mut self, send_timestamp_reply: bool) -> &mut Self
Enable or disable replying to ICMPv4 Timestamp Request messages with Timestamp Reply messages (default: disabled).
Enabling this can introduce a very minor vulnerability in which an attacker can learn the system clock’s time, which in turn can aid in attacks against time-based authentication systems.
Sourcepub fn build<BT: IcmpBindingsTypes>(self) -> Icmpv4State<BT>
pub fn build<BT: IcmpBindingsTypes>(self) -> Icmpv4State<BT>
Builds an [Icmpv4State
].
Trait Implementations§
Source§impl Clone for Icmpv4StateBuilder
impl Clone for Icmpv4StateBuilder
Source§fn clone(&self) -> Icmpv4StateBuilder
fn clone(&self) -> Icmpv4StateBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for Icmpv4StateBuilder
impl Default for Icmpv4StateBuilder
Source§fn default() -> Icmpv4StateBuilder
fn default() -> Icmpv4StateBuilder
Returns the “default value” for a type. Read more
impl Copy for Icmpv4StateBuilder
Auto Trait Implementations§
impl Freeze for Icmpv4StateBuilder
impl RefUnwindSafe for Icmpv4StateBuilder
impl Send for Icmpv4StateBuilder
impl Sync for Icmpv4StateBuilder
impl Unpin for Icmpv4StateBuilder
impl UnwindSafe for Icmpv4StateBuilder
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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