pub struct Runtime {
pub id: NodeId,
pub home: Home,
pub control: ControlSocket,
pub handle: Handle,
pub storage: Storage,
pub reactor: Reactor<Control, Poller>,
pub pool: Pool,
pub local_addrs: Vec<SocketAddr>,
pub signals: Receiver<Signal>,
}
Expand description
Holds join handles to the client threads, as well as a client handle.
Fields§
§id: NodeId
§home: Home
§control: ControlSocket
§handle: Handle
§storage: Storage
§reactor: Reactor<Control, Poller>
§pool: Pool
§local_addrs: Vec<SocketAddr>
§signals: Receiver<Signal>
Implementations§
Auto Trait Implementations§
impl Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl !UnwindSafe for Runtime
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