Struct netstack3_datagram::ListenerInfo
source · pub struct ListenerInfo<A: IpAddress, D> {
pub local_ip: Option<StrictlyZonedAddr<A, SpecifiedAddr<A>, D>>,
pub local_identifier: NonZeroU16,
}
Expand description
Information associated with a datagram listener.
Fields§
§local_ip: Option<StrictlyZonedAddr<A, SpecifiedAddr<A>, D>>
The local address associated with a datagram listener, or None
for any
address.
local_identifier: NonZeroU16
The local port associated with a datagram listener.
Trait Implementations§
source§impl<A: IpAddress, LA: Into<(Option<SpecifiedAddr<A>>, NonZeroU16)>, D> From<ListenerAddr<LA, D>> for ListenerInfo<A, D>
impl<A: IpAddress, LA: Into<(Option<SpecifiedAddr<A>>, NonZeroU16)>, D> From<ListenerAddr<LA, D>> for ListenerInfo<A, D>
source§fn from(_: ListenerAddr<LA, D>) -> Self
fn from(_: ListenerAddr<LA, D>) -> Self
Converts to this type from the input type.
source§impl<A: IpAddress, D> From<NonZero<u16>> for ListenerInfo<A, D>
impl<A: IpAddress, D> From<NonZero<u16>> for ListenerInfo<A, D>
source§fn from(local_identifier: NonZeroU16) -> Self
fn from(local_identifier: NonZeroU16) -> Self
Converts to this type from the input type.
source§impl<A: IpAddress, D, IpType: Ip> GenericOverIp<IpType> for ListenerInfo<A, D>
impl<A: IpAddress, D, IpType: Ip> GenericOverIp<IpType> for ListenerInfo<A, D>
§type Type = ListenerInfo<<IpType as Ip>::Addr, D>
type Type = ListenerInfo<<IpType as Ip>::Addr, D>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.source§impl<A: PartialEq + IpAddress, D: PartialEq> PartialEq for ListenerInfo<A, D>
impl<A: PartialEq + IpAddress, D: PartialEq> PartialEq for ListenerInfo<A, D>
source§fn eq(&self, other: &ListenerInfo<A, D>) -> bool
fn eq(&self, other: &ListenerInfo<A, D>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<A: Eq + IpAddress, D: Eq> Eq for ListenerInfo<A, D>
impl<A: IpAddress, D> StructuralPartialEq for ListenerInfo<A, D>
Auto Trait Implementations§
impl<A, D> Freeze for ListenerInfo<A, D>
impl<A, D> RefUnwindSafe for ListenerInfo<A, D>where
A: RefUnwindSafe,
D: RefUnwindSafe,
impl<A, D> Send for ListenerInfo<A, D>where
D: Send,
impl<A, D> Sync for ListenerInfo<A, D>where
D: Sync,
impl<A, D> Unpin for ListenerInfo<A, D>
impl<A, D> UnwindSafe for ListenerInfo<A, D>where
A: UnwindSafe,
D: 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<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