HandshakeParticipant

Trait HandshakeParticipant 

Source
pub trait HandshakeParticipant {
    // Required method
    fn run<'life0, 'life1, 'async_trait, T>(
        &'life0 self,
        transport: &'life1 mut T,
    ) -> Pin<Box<dyn Future<Output = Result<HandshakeOutcome, HandshakeError>> + Send + 'async_trait>>
       where T: 'async_trait + HandshakeTransport + Send,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Shared behavior between controller and node handshake roles.

Required Methods§

Source

fn run<'life0, 'life1, 'async_trait, T>( &'life0 self, transport: &'life1 mut T, ) -> Pin<Box<dyn Future<Output = Result<HandshakeOutcome, HandshakeError>> + Send + 'async_trait>>
where T: 'async_trait + HandshakeTransport + Send, 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§