pub struct ConnAddr<A, D> {
pub ip: A,
pub device: Option<D>,
}
Expand description
The address of a connected socket.
Fields§
§ip: A
The IP address for the connected socket.
device: Option<D>
The bound device for the connected socket.
Trait Implementations§
Source§impl<I: Ip, D, A: SocketMapAddrSpec> From<ConnAddr<ConnIpAddrInner<SocketIpAddr<<I as Ip>::Addr>, <A as SocketMapAddrSpec>::LocalIdentifier, <A as SocketMapAddrSpec>::RemoteIdentifier>, D>> for AddrVec<I, D, A>
impl<I: Ip, D, A: SocketMapAddrSpec> From<ConnAddr<ConnIpAddrInner<SocketIpAddr<<I as Ip>::Addr>, <A as SocketMapAddrSpec>::LocalIdentifier, <A as SocketMapAddrSpec>::RemoteIdentifier>, D>> for AddrVec<I, D, A>
Source§fn from(
conn: ConnAddr<ConnIpAddr<I::Addr, A::LocalIdentifier, A::RemoteIdentifier>, D>,
) -> Self
fn from( conn: ConnAddr<ConnIpAddr<I::Addr, A::LocalIdentifier, A::RemoteIdentifier>, D>, ) -> Self
Converts to this type from the input type.
Source§impl<A, D, IpType: Ip> GenericOverIp<IpType> for ConnAddr<A, D>
impl<A, D, IpType: Ip> GenericOverIp<IpType> for ConnAddr<A, D>
impl<A: Copy, D: Copy> Copy for ConnAddr<A, D>
impl<A: Eq, D: Eq> Eq for ConnAddr<A, D>
impl<A, D> StructuralPartialEq for ConnAddr<A, D>
Auto Trait Implementations§
impl<A, D> Freeze for ConnAddr<A, D>
impl<A, D> RefUnwindSafe for ConnAddr<A, D>where
A: RefUnwindSafe,
D: RefUnwindSafe,
impl<A, D> Send for ConnAddr<A, D>
impl<A, D> Sync for ConnAddr<A, D>
impl<A, D> Unpin for ConnAddr<A, D>
impl<A, D> UnwindSafe for ConnAddr<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