ConnectStreamAction

Trait ConnectStreamAction 

Source
pub trait ConnectStreamAction: BuildTunnelAction {
    // Required methods
    fn clone_as_connect_stream_action(&self) -> DynConnectStreamAction;
    fn as_any(&self) -> &dyn Any;
    fn state(&self) -> ConnectStreamState;
    fn wait_pre_establish<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ConnectStreamState> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn continue_connect<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = BuckyResult<StreamProviderSelector>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn clone_as_connect_stream_action(&self) -> DynConnectStreamAction

Source

fn as_any(&self) -> &dyn Any

Source

fn state(&self) -> ConnectStreamState

Source

fn wait_pre_establish<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ConnectStreamState> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn continue_connect<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = BuckyResult<StreamProviderSelector>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§