Skip to main content

Startable

Trait Startable 

Source
pub trait Startable {
    // Required method
    fn start(&self) -> impl Future<Output = Result<()>> + Send;
}
Expand description

Startable Implement this trait to allow the node to start the handler

Required Methods§

Source

fn start(&self) -> impl Future<Output = Result<()>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Startable for EventBridge

Source§

impl Startable for P2PNetwork

Source§

impl<TTask: Runnable<TTaskOutput, TRunnableState> + Send + Sync + DeserializeOwned + Serialize + Clone + 'static, TTaskOutput: Debug + Clone + Send + Sync + DeserializeOwned + Serialize + 'static, TRunnableState: Clone + Send + Sync + 'static> Startable for DistributedTaskQueue<TTask, TTaskOutput, TRunnableState>