Struct netstack3_core::udp::UdpSocketId
source · pub struct UdpSocketId<I: IpExt, D: WeakId, BT: UdpBindingsTypes>(/* private fields */);
Expand description
A UDP socket.
Implementations§
source§impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes> UdpSocketId<I, D, BT>
impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes> UdpSocketId<I, D, BT>
sourcepub fn debug_references(&self) -> impl Debug
pub fn debug_references(&self) -> impl Debug
Returns a means to debug outstanding references to this socket.
sourcepub fn external_data(&self) -> &BT::ExternalData<I>
pub fn external_data(&self) -> &BT::ExternalData<I>
Returns external data associated with this socket.
Trait Implementations§
source§impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes> Borrow<Strong<ReferenceState<I, D, Udp<BT>>>> for UdpSocketId<I, D, BT>
impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes> Borrow<Strong<ReferenceState<I, D, Udp<BT>>>> for UdpSocketId<I, D, BT>
source§impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes> Clone for UdpSocketId<I, D, BT>
impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes> Clone for UdpSocketId<I, D, BT>
source§impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes> Debug for UdpSocketId<I, D, BT>
impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes> Debug for UdpSocketId<I, D, BT>
source§impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes> From<Strong<ReferenceState<I, D, Udp<BT>>>> for UdpSocketId<I, D, BT>
impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes> From<Strong<ReferenceState<I, D, Udp<BT>>>> for UdpSocketId<I, D, BT>
source§impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes, IpType> GenericOverIp<IpType> for UdpSocketId<I, D, BT>where
IpType: IpExt + Ip,
impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes, IpType> GenericOverIp<IpType> for UdpSocketId<I, D, BT>where
IpType: IpExt + Ip,
§type Type = UdpSocketId<IpType, D, BT>
type Type = UdpSocketId<IpType, D, BT>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.source§impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes> Hash for UdpSocketId<I, D, BT>
impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes> Hash for UdpSocketId<I, D, BT>
source§impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes> PartialEq for UdpSocketId<I, D, BT>
impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes> PartialEq for UdpSocketId<I, D, BT>
impl<I: IpExt, D: WeakId, BT: UdpBindingsTypes> Eq for UdpSocketId<I, D, BT>
Auto Trait Implementations§
impl<I, D, BT> Freeze for UdpSocketId<I, D, BT>where
D: PartialEq<<D as WeakId>::Strong> + Id + Sync + Send + PartialEq + Hash + Eq + Debug + Clone + 'static,
I: IcmpIpExt + IcmpIpExt + IpProtoExt + Ip + Sealed + Sync + Send + PartialOrd + PartialEq + Ord + Hash + Eq + Default + Debug + Copy + Clone + IpExt + EthernetIpExt + DualStackIpExt + DualStackIpExt + IpDeviceStateIpExt + IpTypesIpExt + IpLayerIpExt + IpExt + 'static,
impl<I, D, BT> RefUnwindSafe for UdpSocketId<I, D, BT>where
D: PartialEq<<D as WeakId>::Strong> + Id + Sync + Send + PartialEq + Hash + Eq + Debug + Clone + 'static,
I: IcmpIpExt + IcmpIpExt + IpProtoExt + Ip + Sealed + Sync + Send + PartialOrd + PartialEq + Ord + Hash + Eq + Default + Debug + Copy + Clone + IpExt + EthernetIpExt + DualStackIpExt + DualStackIpExt + IpDeviceStateIpExt + IpTypesIpExt + IpLayerIpExt + IpExt + 'static,
<BT as UdpBindingsTypes>::ExternalData<I>: RefUnwindSafe,
impl<I, D, BT> Send for UdpSocketId<I, D, BT>where
D: PartialEq<<D as WeakId>::Strong> + Id + Sync + Send + PartialEq + Hash + Eq + Debug + Clone + 'static,
I: IcmpIpExt + IcmpIpExt + IpProtoExt + Ip + Sealed + Sync + Send + PartialOrd + PartialEq + Ord + Hash + Eq + Default + Debug + Copy + Clone + IpExt + EthernetIpExt + DualStackIpExt + DualStackIpExt + IpDeviceStateIpExt + IpTypesIpExt + IpLayerIpExt + IpExt + 'static,
impl<I, D, BT> Sync for UdpSocketId<I, D, BT>where
D: PartialEq<<D as WeakId>::Strong> + Id + Sync + Send + PartialEq + Hash + Eq + Debug + Clone + 'static,
I: IcmpIpExt + IcmpIpExt + IpProtoExt + Ip + Sealed + Sync + Send + PartialOrd + PartialEq + Ord + Hash + Eq + Default + Debug + Copy + Clone + IpExt + EthernetIpExt + DualStackIpExt + DualStackIpExt + IpDeviceStateIpExt + IpTypesIpExt + IpLayerIpExt + IpExt + 'static,
impl<I, D, BT> Unpin for UdpSocketId<I, D, BT>where
D: PartialEq<<D as WeakId>::Strong> + Id + Sync + Send + PartialEq + Hash + Eq + Debug + Clone + 'static,
I: IcmpIpExt + IcmpIpExt + IpProtoExt + Ip + Sealed + Sync + Send + PartialOrd + PartialEq + Ord + Hash + Eq + Default + Debug + Copy + Clone + IpExt + EthernetIpExt + DualStackIpExt + DualStackIpExt + IpDeviceStateIpExt + IpTypesIpExt + IpLayerIpExt + IpExt + 'static,
impl<I, D, BT> UnwindSafe for UdpSocketId<I, D, BT>where
D: PartialEq<<D as WeakId>::Strong> + Id + Sync + Send + PartialEq + Hash + Eq + Debug + Clone + 'static,
I: IcmpIpExt + IcmpIpExt + IpProtoExt + Ip + Sealed + Sync + Send + PartialOrd + PartialEq + Ord + Hash + Eq + Default + Debug + Copy + Clone + IpExt + EthernetIpExt + DualStackIpExt + DualStackIpExt + IpDeviceStateIpExt + IpTypesIpExt + IpLayerIpExt + IpExt + 'static,
<BT as UdpBindingsTypes>::ExternalData<I>: RefUnwindSafe,
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