Skip to main content

ClientAccounting

Trait ClientAccounting 

Source
pub trait ClientAccounting {
    // Required method
    fn report<'a, 'life0, 'async_trait, T>(
        &'life0 self,
        event: T,
    ) -> Pin<Box<dyn Future<Output = EResult<()>> + Send + 'async_trait>>
       where T: TryInto<Cow<'a>> + Send + 'async_trait,
             Self: 'async_trait,
             'a: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn report<'a, 'life0, 'async_trait, T>( &'life0 self, event: T, ) -> Pin<Box<dyn Future<Output = EResult<()>> + Send + 'async_trait>>
where T: TryInto<Cow<'a>> + Send + 'async_trait, Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ClientAccounting for Arc<Mutex<dyn AsyncClient>>

Source§

fn report<'a, 'life0, 'async_trait, T>( &'life0 self, event: T, ) -> Pin<Box<dyn Future<Output = EResult<()>> + Send + 'async_trait>>
where T: TryInto<Cow<'a>> + Send + 'async_trait, Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait,

§Panics

Will panic if RPC not set

Implementors§