pub struct RawIpSocketIcmpFilter<I>where
I: IcmpIpExt,{ /* private fields */ }
Expand description
An ICMP filter installed on a raw IP socket.
Implementations§
Source§impl<I> RawIpSocketIcmpFilter<I>where
I: IcmpIpExt,
impl<I> RawIpSocketIcmpFilter<I>where
I: IcmpIpExt,
Sourcepub const ALLOW_ALL: RawIpSocketIcmpFilter<I> = _
pub const ALLOW_ALL: RawIpSocketIcmpFilter<I> = _
An ICMP filter that allows all message types to be delivered.
Sourcepub const DENY_ALL: RawIpSocketIcmpFilter<I> = _
pub const DENY_ALL: RawIpSocketIcmpFilter<I> = _
An ICMP filter that prevents all message types from being delivered.
Sourcepub const fn new(filter: [u8; 32]) -> RawIpSocketIcmpFilter<I>
pub const fn new(filter: [u8; 32]) -> RawIpSocketIcmpFilter<I>
Construct a RawIpSocketIcmpFilter
from the raw bytes.
The array is expected to be little endian. E.g. byte 0 in the array is used to control filters for types 0-7.
Sourcepub fn into_bytes(self) -> [u8; 32]
pub fn into_bytes(self) -> [u8; 32]
Convert the RawIpSocketIcmpFilter
into the raw bytes.
The array is returned in little endian format.
Trait Implementations§
Source§impl<I> Clone for RawIpSocketIcmpFilter<I>
impl<I> Clone for RawIpSocketIcmpFilter<I>
Source§fn clone(&self) -> RawIpSocketIcmpFilter<I>
fn clone(&self) -> RawIpSocketIcmpFilter<I>
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<I> Debug for RawIpSocketIcmpFilter<I>
impl<I> Debug for RawIpSocketIcmpFilter<I>
Source§impl<I> Display for RawIpSocketIcmpFilter<I>where
I: IcmpIpExt,
impl<I> Display for RawIpSocketIcmpFilter<I>where
I: IcmpIpExt,
Source§impl<I, IpType> GenericOverIp<IpType> for RawIpSocketIcmpFilter<I>
impl<I, IpType> GenericOverIp<IpType> for RawIpSocketIcmpFilter<I>
Source§type Type = RawIpSocketIcmpFilter<IpType>
type Type = RawIpSocketIcmpFilter<IpType>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.Source§impl<I> PartialEq for RawIpSocketIcmpFilter<I>
impl<I> PartialEq for RawIpSocketIcmpFilter<I>
impl<I> StructuralPartialEq for RawIpSocketIcmpFilter<I>where
I: IcmpIpExt,
Auto Trait Implementations§
impl<I> Freeze for RawIpSocketIcmpFilter<I>
impl<I> RefUnwindSafe for RawIpSocketIcmpFilter<I>where
I: RefUnwindSafe,
impl<I> Send for RawIpSocketIcmpFilter<I>
impl<I> Sync for RawIpSocketIcmpFilter<I>
impl<I> Unpin for RawIpSocketIcmpFilter<I>where
I: Unpin,
impl<I> UnwindSafe for RawIpSocketIcmpFilter<I>where
I: UnwindSafe,
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<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
Source§impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
Source§type Data = <L as UnlockedAccessMarkerFor<T>>::Data
type Data = <L as UnlockedAccessMarkerFor<T>>::Data
The type of state being accessed.
Source§type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data
where
T: 'l
type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data where T: 'l
A guard providing read access to the data.
Source§fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
How to access the state.