pub struct ListenerAddr<A, D> {
pub ip: A,
pub device: Option<D>,
}
Expand description
The address of a listening socket.
Fields§
§ip: A
The IP address of the listening socket.
device: Option<D>
The bound device of the listening socket.
Trait Implementations§
Source§impl<A, D> AsRef<Option<D>> for ListenerAddr<A, D>
impl<A, D> AsRef<Option<D>> for ListenerAddr<A, D>
Source§impl<A: Clone, D: Clone> Clone for ListenerAddr<A, D>
impl<A: Clone, D: Clone> Clone for ListenerAddr<A, D>
Source§fn clone(&self) -> ListenerAddr<A, D>
fn clone(&self) -> ListenerAddr<A, D>
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: Ip, D, A: SocketMapAddrSpec> From<ListenerAddr<ListenerIpAddr<<I as Ip>::Addr, <A as SocketMapAddrSpec>::LocalIdentifier>, D>> for AddrVec<I, D, A>
impl<I: Ip, D, A: SocketMapAddrSpec> From<ListenerAddr<ListenerIpAddr<<I as Ip>::Addr, <A as SocketMapAddrSpec>::LocalIdentifier>, D>> for AddrVec<I, D, A>
Source§fn from(
listener: ListenerAddr<ListenerIpAddr<I::Addr, A::LocalIdentifier>, D>,
) -> Self
fn from( listener: ListenerAddr<ListenerIpAddr<I::Addr, A::LocalIdentifier>, D>, ) -> Self
Converts to this type from the input type.
Source§impl<A, D, IpType: Ip> GenericOverIp<IpType> for ListenerAddr<A, D>
impl<A, D, IpType: Ip> GenericOverIp<IpType> for ListenerAddr<A, D>
Source§type Type = ListenerAddr<<A as GenericOverIp<IpType>>::Type, D>
type Type = ListenerAddr<<A as GenericOverIp<IpType>>::Type, D>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.impl<A: Copy, D: Copy> Copy for ListenerAddr<A, D>
impl<A: Eq, D: Eq> Eq for ListenerAddr<A, D>
impl<A, D> StructuralPartialEq for ListenerAddr<A, D>
Auto Trait Implementations§
impl<A, D> Freeze for ListenerAddr<A, D>
impl<A, D> RefUnwindSafe for ListenerAddr<A, D>where
A: RefUnwindSafe,
D: RefUnwindSafe,
impl<A, D> Send for ListenerAddr<A, D>
impl<A, D> Sync for ListenerAddr<A, D>
impl<A, D> Unpin for ListenerAddr<A, D>
impl<A, D> UnwindSafe for ListenerAddr<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<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