Trait PeerHandleOpsExt

Source
pub trait PeerHandleOpsExt {
    // Required method
    fn exchange_encodable<'life0, 'async_trait, T>(
        &'life0 self,
        data: T,
    ) -> Pin<Box<dyn Future<Output = Result<BTreeMap<PeerId, T>>> + Send + 'async_trait>>
       where T: 'async_trait + Encodable + Decodable + Send + Sync,
             Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn exchange_encodable<'life0, 'async_trait, T>( &'life0 self, data: T, ) -> Pin<Box<dyn Future<Output = Result<BTreeMap<PeerId, T>>> + Send + 'async_trait>>
where T: 'async_trait + Encodable + Decodable + Send + Sync, Self: 'async_trait, 'life0: '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§

Source§

impl<O> PeerHandleOpsExt for O
where O: PeerHandleOps + Send + Sync + ?Sized,