pub struct PlainNetIo;Expand description
The operating system’s sockets and resolver, unrouted.
Trait Implementations§
Source§impl Clone for PlainNetIo
impl Clone for PlainNetIo
impl Copy for PlainNetIo
Source§impl Debug for PlainNetIo
impl Debug for PlainNetIo
Source§impl Default for PlainNetIo
impl Default for PlainNetIo
Source§impl NetIo for PlainNetIo
impl NetIo for PlainNetIo
Source§fn bind_udp(
&self,
_token: &GateToken,
addr: SocketAddr,
opts: UdpOpts,
) -> Result<UdpSocket>
fn bind_udp( &self, _token: &GateToken, addr: SocketAddr, opts: UdpOpts, ) -> Result<UdpSocket>
A non-blocking UDP socket bound on
addr (port 0: any). token
allowed a ReachKind::Bind on addr’s IP.Source§fn bind_mdns(&self, _token: &GateToken, hosts: &[IpAddr]) -> Result<UdpSocket>
fn bind_mdns(&self, _token: &GateToken, hosts: &[IpAddr]) -> Result<UdpSocket>
The mDNS socket:
0.0.0.0:5353 with address (and port) reuse, so it
shares the port with the host’s own responder, in the mDNS group on
each IPv4 address of hosts (or the default interface). See
mdns_socket. token allowed the
ReachKind::Mdns bind on 0.0.0.0.Source§fn bind_tcp(&self, _token: &GateToken, addr: SocketAddr) -> Result<TcpListener>
fn bind_tcp(&self, _token: &GateToken, addr: SocketAddr) -> Result<TcpListener>
Source§fn connect_tcp<'a>(
&'a self,
_token: &'a GateToken,
bind: Option<IpAddr>,
to: SocketAddr,
_host: Option<&'a str>,
) -> LocalBoxFuture<'a, Result<TcpStream>>
fn connect_tcp<'a>( &'a self, _token: &'a GateToken, bind: Option<IpAddr>, to: SocketAddr, _host: Option<&'a str>, ) -> LocalBoxFuture<'a, Result<TcpStream>>
A TCP connection to
to, from bind (port 0) when given (the engine
passes only a bind of to’s family). host is the name to was
resolved from, when there is one (a TURN server’s). token allowed
to: a ReachKind::TcpDial (ICE-TCP) or
a ReachKind::IceServerResolved
(a TURN server over TCP / TLS).Source§fn resolve<'a>(
&'a self,
_token: &'a GateToken,
host: &'a str,
port: u16,
) -> LocalBoxFuture<'a, Result<Vec<SocketAddr>>>
fn resolve<'a>( &'a self, _token: &'a GateToken, host: &'a str, port: u16, ) -> LocalBoxFuture<'a, Result<Vec<SocketAddr>>>
Resolves
host (an ICE server URL’s host: a name, an IP literal, or a
bracketed IPv6 literal) and port. token allowed the
ReachKind::IceServer question for
host and port.Auto Trait Implementations§
impl Forget for PlainNetIo
impl Freeze for PlainNetIo
impl Move for PlainNetIo
impl RefUnwindSafe for PlainNetIo
impl Send for PlainNetIo
impl Sync for PlainNetIo
impl Unpin for PlainNetIo
impl UnsafeUnpin for PlainNetIo
impl UnwindSafe for PlainNetIo
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.