pub struct ConnInfo<A: IpAddress, D> {
pub local_ip: StrictlyZonedAddr<A, SpecifiedAddr<A>, D>,
pub local_identifier: NonZeroU16,
pub remote_ip: StrictlyZonedAddr<A, SpecifiedAddr<A>, D>,
pub remote_identifier: u16,
}
Expand description
Information associated with a datagram connection.
Fields§
§local_ip: StrictlyZonedAddr<A, SpecifiedAddr<A>, D>
The local address associated with a datagram connection.
local_identifier: NonZeroU16
The local identifier associated with a datagram connection.
remote_ip: StrictlyZonedAddr<A, SpecifiedAddr<A>, D>
The remote address associated with a datagram connection.
remote_identifier: u16
The remote identifier associated with a datagram connection.
Implementations§
Source§impl<A: IpAddress, D> ConnInfo<A, D>
impl<A: IpAddress, D> ConnInfo<A, D>
Sourcepub fn new(
local_ip: SpecifiedAddr<A>,
local_identifier: NonZeroU16,
remote_ip: SpecifiedAddr<A>,
remote_identifier: u16,
get_zone: impl FnMut() -> D,
) -> Self
pub fn new( local_ip: SpecifiedAddr<A>, local_identifier: NonZeroU16, remote_ip: SpecifiedAddr<A>, remote_identifier: u16, get_zone: impl FnMut() -> D, ) -> Self
Construct a new ConnInfo
.
Trait Implementations§
impl<A: IpAddress, D> StructuralPartialEq for ConnInfo<A, D>
Auto Trait Implementations§
impl<A, D> Freeze for ConnInfo<A, D>
impl<A, D> RefUnwindSafe for ConnInfo<A, D>where
A: RefUnwindSafe,
D: RefUnwindSafe,
impl<A, D> Send for ConnInfo<A, D>where
D: Send,
impl<A, D> Sync for ConnInfo<A, D>where
D: Sync,
impl<A, D> Unpin for ConnInfo<A, D>
impl<A, D> UnwindSafe for ConnInfo<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