pub struct NetworkHost {}Expand description
A node worker, that deals with accepting and initiating connections with remote peers.
NOTE: This type is only exported to be used as a worker dependency.
Trait Implementations§
Source§impl Default for NetworkHost
impl Default for NetworkHost
Source§fn default() -> NetworkHost
fn default() -> NetworkHost
Returns the “default value” for a type. Read more
Source§impl<N: Node> Worker<N> for NetworkHost
impl<N: Node> Worker<N> for NetworkHost
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 NetworkHost
impl RefUnwindSafe for NetworkHost
impl Send for NetworkHost
impl Sync for NetworkHost
impl Unpin for NetworkHost
impl UnwindSafe for NetworkHost
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