Trait Gossip

Source
pub trait Gossip: Send + Sync {
    // Required methods
    fn broadcast<'life0, 'life1, 'async_trait, M>(
        &'life0 self,
        cx: Context,
        end: &'life1 str,
        msg: M,
        p: Priority,
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
       where M: MessageCodec + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn users_cast<'life0, 'life1, 'async_trait, M>(
        &'life0 self,
        cx: Context,
        end: &'life1 str,
        users: Vec<Address>,
        msg: M,
        p: Priority,
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
       where M: MessageCodec + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn broadcast<'life0, 'life1, 'async_trait, M>( &'life0 self, cx: Context, end: &'life1 str, msg: M, p: Priority, ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
where M: MessageCodec + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn users_cast<'life0, 'life1, 'async_trait, M>( &'life0 self, cx: Context, end: &'life1 str, users: Vec<Address>, msg: M, p: Priority, ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
where M: MessageCodec + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§