pub struct RuntimeParts<E: Executor, R: Reactor> { /* private fields */ }
Expand description
Wrapper around separate Executor and Reactor implementing RuntimeKit
Implementations§
Trait Implementations§
Source§impl<E: Clone + Executor, R: Clone + Reactor> Clone for RuntimeParts<E, R>
impl<E: Clone + Executor, R: Clone + Reactor> Clone for RuntimeParts<E, R>
Source§fn clone(&self) -> RuntimeParts<E, R>
fn clone(&self) -> RuntimeParts<E, R>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<E: Executor, R: Reactor> Executor for RuntimeParts<E, R>
impl<E: Executor, R: Reactor> Executor for RuntimeParts<E, R>
Source§impl<E: Executor, R: Reactor> Reactor for RuntimeParts<E, R>
impl<E: Executor, R: Reactor> Reactor for RuntimeParts<E, R>
Source§type TcpStream = <R as Reactor>::TcpStream
type TcpStream = <R as Reactor>::TcpStream
The type representing a TCP stream (after tcp_connect) for this reactor
Source§fn register<H: Read + Write + AsSysFd + Send + 'static>(
&self,
socket: H,
) -> Result<impl AsyncRead + AsyncWrite + Send + Unpin + 'static>
fn register<H: Read + Write + AsSysFd + Send + 'static>( &self, socket: H, ) -> Result<impl AsyncRead + AsyncWrite + Send + Unpin + 'static>
Register a synchronous handle, returning an asynchronous one
Source§fn sleep(&self, dur: Duration) -> impl Future<Output = ()> + Send + 'static
fn sleep(&self, dur: Duration) -> impl Future<Output = ()> + Send + 'static
Sleep for the given duration
Source§fn interval(
&self,
dur: Duration,
) -> impl Stream<Item = Instant> + Send + 'static
fn interval( &self, dur: Duration, ) -> impl Stream<Item = Instant> + Send + 'static
Stream that yields at every given interval
Source§fn tcp_connect_addr(
&self,
addr: SocketAddr,
) -> impl Future<Output = Result<Self::TcpStream>> + Send + 'static
fn tcp_connect_addr( &self, addr: SocketAddr, ) -> impl Future<Output = Result<Self::TcpStream>> + Send + 'static
Create a TcpStream by connecting to a remote host
impl<E: Executor + Debug, R: Reactor + Debug> RuntimeKit for RuntimeParts<E, R>
Auto Trait Implementations§
impl<E, R> Freeze for RuntimeParts<E, R>
impl<E, R> RefUnwindSafe for RuntimeParts<E, R>where
E: RefUnwindSafe,
R: RefUnwindSafe,
impl<E, R> Send for RuntimeParts<E, R>
impl<E, R> Sync for RuntimeParts<E, R>
impl<E, R> Unpin for RuntimeParts<E, R>
impl<E, R> UnwindSafe for RuntimeParts<E, R>where
E: UnwindSafe,
R: 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