pub struct TangleWorker;Expand description
A type representing a tangle node worker.
Trait Implementations§
Source§impl<N: Node> Worker<N> for TangleWorkerwhere
N::Backend: StorageBackend,
impl<N: Node> Worker<N> for TangleWorkerwhere
N::Backend: StorageBackend,
Source§type Config = TangleConfig
type Config = TangleConfig
The configuration state required to start this worker.
Source§type Error = Infallible
type Error = Infallible
An error that may be emitted during node startup and shutdown.
Source§fn start<'life0, 'async_trait>(
node: &'life0 mut N,
config: Self::Config,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
node: &'life0 mut N,
config: Self::Config,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Attempt to instantiate this worker with the given node and worker configuration.
Source§fn stop<'life0, 'async_trait>(
self,
node: &'life0 mut N,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop<'life0, 'async_trait>(
self,
node: &'life0 mut N,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Attempt to stop an instance of this worker.
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 TangleWorker
impl RefUnwindSafe for TangleWorker
impl Send for TangleWorker
impl Sync for TangleWorker
impl Unpin for TangleWorker
impl UnwindSafe for TangleWorker
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