pub struct AsyncRuntimeProvider<N> { /* private fields */ }Expand description
Defines which async runtime that handles IO and timers.
Implementations§
Source§impl<N> AsyncRuntimeProvider<N>
impl<N> AsyncRuntimeProvider<N>
Trait Implementations§
Source§impl<N> Clone for AsyncRuntimeProvider<N>
impl<N> Clone for AsyncRuntimeProvider<N>
Source§impl<N> Default for AsyncRuntimeProvider<N>
impl<N> Default for AsyncRuntimeProvider<N>
Source§impl<N: Net> RuntimeProvider for AsyncRuntimeProvider<N>
impl<N: Net> RuntimeProvider for AsyncRuntimeProvider<N>
Source§type Handle = AsyncSpawn<N>
type Handle = AsyncSpawn<N>
Handle to the executor;
Source§type Udp = AsyncDnsUdp<N>
type Udp = AsyncDnsUdp<N>
UdpSocket
Source§fn create_handle(&self) -> Self::Handle
fn create_handle(&self) -> Self::Handle
Create a runtime handle
Source§fn connect_tcp(
&self,
addr: SocketAddr,
) -> Pin<Box<dyn Send + Future<Output = Result<Self::Tcp>>>>
fn connect_tcp( &self, addr: SocketAddr, ) -> Pin<Box<dyn Send + Future<Output = Result<Self::Tcp>>>>
Create a TCP connection with custom configuration.
Source§fn bind_udp(
&self,
local_addr: SocketAddr,
_server_addr: SocketAddr,
) -> Pin<Box<dyn Send + Future<Output = Result<Self::Udp>>>>
fn bind_udp( &self, local_addr: SocketAddr, _server_addr: SocketAddr, ) -> Pin<Box<dyn Send + Future<Output = Result<Self::Udp>>>>
Create a UDP socket bound to
local_addr. The returned value should not be connected to server_addr.
Notice: the future should be ready once returned at best effort. Otherwise UDP DNS may need much more retries.impl<N> Copy for AsyncRuntimeProvider<N>
Auto Trait Implementations§
impl<N> Freeze for AsyncRuntimeProvider<N>
impl<N> RefUnwindSafe for AsyncRuntimeProvider<N>where
N: RefUnwindSafe,
impl<N> Send for AsyncRuntimeProvider<N>where
N: Send,
impl<N> Sync for AsyncRuntimeProvider<N>where
N: Sync,
impl<N> Unpin for AsyncRuntimeProvider<N>where
N: Unpin,
impl<N> UnwindSafe for AsyncRuntimeProvider<N>where
N: 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