Struct netstack3_core::socket::ConnInfo
source · 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§
Auto Trait Implementations§
impl<A, D> Freeze for ConnInfo<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static + Freeze,
D: Freeze,
impl<A, D> RefUnwindSafe for ConnInfo<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static + RefUnwindSafe,
D: RefUnwindSafe,
impl<A, D> Send for ConnInfo<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static,
D: Send,
impl<A, D> Sync for ConnInfo<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static,
D: Sync,
impl<A, D> Unpin for ConnInfo<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static + Unpin,
D: Unpin,
impl<A, D> UnwindSafe for ConnInfo<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static + 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.