Trait serai_coordinator::processors::Processors
source · pub trait Processors: 'static + Send + Sync + Clone {
// Required methods
fn send<'life0, 'async_trait>(
&'life0 self,
network: ExternalNetworkId,
msg: impl 'async_trait + Send + Into<CoordinatorMessage>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn recv<'life0, 'async_trait>(
&'life0 self,
network: ExternalNetworkId,
) -> Pin<Box<dyn Future<Output = Message> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn ack<'life0, 'async_trait>(
&'life0 self,
msg: Message,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
fn send<'life0, 'async_trait>(
&'life0 self,
network: ExternalNetworkId,
msg: impl 'async_trait + Send + Into<CoordinatorMessage>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recv<'life0, 'async_trait>(
&'life0 self,
network: ExternalNetworkId,
) -> Pin<Box<dyn Future<Output = Message> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ack<'life0, 'async_trait>(
&'life0 self,
msg: Message,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Object Safety§
This trait is not object safe.