pub struct Runtime<H: ReactionHandler> { /* private fields */ }Expand description
Internal Reactor runtime which is run in a dedicated thread.
This runtime structure does not spawn a thread and is blocking. It implements the actual reactor event loop.
Auto Trait Implementations§
impl<H> Freeze for Runtime<H>where
H: Freeze,
impl<H> RefUnwindSafe for Runtime<H>where
H: RefUnwindSafe,
<H as ReactionHandler>::Listener: RefUnwindSafe,
<H as ReactionHandler>::Transport: RefUnwindSafe,
impl<H> Send for Runtime<H>
impl<H> Sync for Runtime<H>
impl<H> Unpin for Runtime<H>
impl<H> UnsafeUnpin for Runtime<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for Runtime<H>where
H: UnwindSafe,
<H as ReactionHandler>::Listener: UnwindSafe,
<H as ReactionHandler>::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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more