pub struct Runtime<H: Handler, P: Poll> { /* private fields */ }Expand description
Internal Reactor runtime which is run in a dedicated thread.
Use this structure direactly only if you’d like to have the full control over the reactor thread.
This runtime structure does not spawns a thread and is blocking. It implements the actual reactor event loop.
Implementations§
source§impl<H: Handler, P: Poll> Runtime<H, P>
impl<H: Handler, P: Poll> Runtime<H, P>
sourcepub fn controller(&self) -> Controller<H::Command, <P::Waker as Waker>::Send>
pub fn controller(&self) -> Controller<H::Command, <P::Waker as Waker>::Send>
Provides a copy of a Controller object which exposes an API to the reactor and a service
running inside of its thread.
See Handler::Command for the details.
Auto Trait Implementations§
impl<H, P> RefUnwindSafe for Runtime<H, P>where H: RefUnwindSafe, P: RefUnwindSafe, <<H as Handler>::Listener as Resource>::Id: RefUnwindSafe, <<H as Handler>::Transport as Resource>::Id: RefUnwindSafe, <H as Handler>::Listener: RefUnwindSafe, <<P as Poll>::Waker as Waker>::Recv: RefUnwindSafe, <<P as Poll>::Waker as Waker>::Send: RefUnwindSafe, <H as Handler>::Transport: RefUnwindSafe,
impl<H, P> Send for Runtime<H, P>
impl<H, P> Sync for Runtime<H, P>where H: Sync, P: Sync, <<H as Handler>::Listener as Resource>::Id: Sync, <<H as Handler>::Transport as Resource>::Id: Sync, <H as Handler>::Listener: Sync, <<P as Poll>::Waker as Waker>::Recv: Sync, <H as Handler>::Transport: Sync,
impl<H, P> Unpin for Runtime<H, P>where H: Unpin, P: Unpin, <H as Handler>::Command: Unpin, <<H as Handler>::Listener as Resource>::Id: Unpin, <<H as Handler>::Transport as Resource>::Id: Unpin, <H as Handler>::Listener: Unpin, <<P as Poll>::Waker as Waker>::Recv: Unpin, <<P as Poll>::Waker as Waker>::Send: Unpin, <H as Handler>::Transport: Unpin,
impl<H, P> UnwindSafe for Runtime<H, P>where H: UnwindSafe, P: UnwindSafe, <<H as Handler>::Listener as Resource>::Id: UnwindSafe, <<H as Handler>::Transport as Resource>::Id: UnwindSafe, <H as Handler>::Listener: UnwindSafe, <<P as Poll>::Waker as Waker>::Recv: UnwindSafe, <<P as Poll>::Waker as Waker>::Send: UnwindSafe, <H as Handler>::Transport: 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