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> Freeze for Runtime<H, P>
impl<H, P> RefUnwindSafe for Runtime<H, P>where
H: RefUnwindSafe,
P: RefUnwindSafe,
<<P as Poll>::Waker as Waker>::Recv: RefUnwindSafe,
<<P as Poll>::Waker as Waker>::Send: RefUnwindSafe,
<H as Handler>::Listener: RefUnwindSafe,
<H as Handler>::Transport: RefUnwindSafe,
impl<H, P> Send for Runtime<H, P>
impl<H, P> Sync for Runtime<H, P>
impl<H, P> Unpin for Runtime<H, P>
impl<H, P> UnwindSafe for Runtime<H, P>where
H: UnwindSafe,
P: UnwindSafe,
<<P as Poll>::Waker as Waker>::Recv: UnwindSafe,
<<P as Poll>::Waker as Waker>::Send: UnwindSafe,
<H as Handler>::Listener: 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