interop::clients

Trait EmulatedClient

Source
pub(crate) trait EmulatedClient {
    // Required methods
    fn client_name(&self) -> &str;
    fn client_type(&self) -> EmulatedClientType;
    fn client_id(&self) -> &[u8] ;
    fn client_protocol(&self) -> EmulatedClientProtocol;
    fn wipe<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
       where Self: 'async_trait;
}

Required Methods§

Source

fn client_name(&self) -> &str

Source

fn client_type(&self) -> EmulatedClientType

Source

fn client_id(&self) -> &[u8]

Source

fn client_protocol(&self) -> EmulatedClientProtocol

Source

fn wipe<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
where Self: 'async_trait,

Implementors§