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<'life0, 'async_trait>(
&'life0 self,
addr: SocketAddr,
) -> Pin<Box<dyn Future<Output = Result<impl AsyncIOHandle + Send>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn tcp_connect<'life0, 'async_trait>(
&'life0 self,
addr: SocketAddr,
) -> Pin<Box<dyn Future<Output = Result<impl AsyncIOHandle + Send>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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