pub struct ServiceHost {}Expand description
A node worker, that deals with processing user commands, and publishing events.
NOTE: This type is only exported to be used as a worker dependency.
Trait Implementations§
Source§impl Default for ServiceHost
impl Default for ServiceHost
Source§fn default() -> ServiceHost
fn default() -> ServiceHost
Returns the “default value” for a type. Read more
Source§impl<N: Node> Worker<N> for ServiceHost
impl<N: Node> Worker<N> for ServiceHost
Source§type Error = Infallible
type Error = Infallible
An error that may be emitted during node startup and shutdown.
Source§fn dependencies() -> &'static [TypeId]
fn dependencies() -> &'static [TypeId]
Generate a list of
TypeIds representing the topological worker dependencies of this worker. Read moreAuto Trait Implementations§
impl Freeze for ServiceHost
impl RefUnwindSafe for ServiceHost
impl Send for ServiceHost
impl Sync for ServiceHost
impl Unpin for ServiceHost
impl UnwindSafe for ServiceHost
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