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: Executor, R: Reactor> Executor for RuntimeParts<E, R>
impl<E: Executor, R: Reactor> Executor for RuntimeParts<E, R>
Source§impl<E: Executor + Sync, R: Reactor + Sync> Reactor for RuntimeParts<E, R>
impl<E: Executor + Sync, R: Reactor + Sync> Reactor for RuntimeParts<E, R>
Source§fn register<H: IO + Send + 'static>(
&self,
socket: IOHandle<H>,
) -> Result<impl AsyncIOHandle + Send>
fn register<H: IO + Send + 'static>( &self, socket: IOHandle<H>, ) -> Result<impl AsyncIOHandle + Send>
Register a synchronous handle, returning an asynchronous one
Source§fn interval(&self, dur: Duration) -> impl Stream<Item = Instant>
fn interval(&self, dur: Duration) -> impl Stream<Item = Instant>
Stream that yields at every given interval
Source§fn tcp_connect(
&self,
addr: SocketAddr,
) -> impl Future<Output = Result<impl AsyncIOHandle + Send>> + Send
fn tcp_connect( &self, addr: SocketAddr, ) -> impl Future<Output = Result<impl AsyncIOHandle + Send>> + Send
Create a TcpStream by connecting to a remote host
impl<E: Executor + Sync + Debug, R: Reactor + Sync + 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