Struct fake_netstack::DatagramSocket
source · pub(crate) struct DatagramSocket {
pub(crate) domain: Domain,
pub(crate) protocol: DatagramSocketProtocol,
pub(crate) bound: Option<SocketAddress>,
pub(crate) connected: Option<SocketAddress>,
pub(crate) control_handle: SynchronousDatagramSocketControlHandle,
pub(crate) _local_event: EventPair,
pub(crate) peer_event: EventPair,
}
Fields§
§domain: Domain
§protocol: DatagramSocketProtocol
§bound: Option<SocketAddress>
§connected: Option<SocketAddress>
§control_handle: SynchronousDatagramSocketControlHandle
§_local_event: EventPair
§peer_event: EventPair
Implementations§
source§impl DatagramSocket
impl DatagramSocket
pub(crate) fn new( protocol: DatagramSocketProtocol, domain: Domain, control_handle: SynchronousDatagramSocketControlHandle ) -> Result<Self, Error>
pub(crate) fn bind( &mut self, addr: SocketAddress, sockets: &mut HashSet<SocketAddress> )
Auto Trait Implementations§
impl !RefUnwindSafe for DatagramSocket
impl Send for DatagramSocket
impl Sync for DatagramSocket
impl Unpin for DatagramSocket
impl !UnwindSafe for DatagramSocket
Blanket Implementations§
§impl<T> Encode<Ambiguous1> for T
impl<T> Encode<Ambiguous1> for T
§impl<T> Encode<Ambiguous2> for T
impl<T> Encode<Ambiguous2> for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.