Skip to main content

ConnectionExt

Trait ConnectionExt 

Source
pub trait ConnectionExt<'a>: Connection {
    // Provided methods
    fn append_log(
        &'a mut self,
        subject: &'a str,
        module: &'a str,
        msg: &'a [u8],
    ) -> Self::Invoke<'a, ()> { ... }
    fn tail_logs(
        &'a mut self,
        subject: &'a str,
        n: usize,
    ) -> Self::Invoke<'a, Vec<LogRecord>> { ... }
}
Expand description

An extension trait to provide invocation for conventional extapi.* APIs.

Provided Methods§

Source

fn append_log( &'a mut self, subject: &'a str, module: &'a str, msg: &'a [u8], ) -> Self::Invoke<'a, ()>

Source

fn tail_logs( &'a mut self, subject: &'a str, n: usize, ) -> Self::Invoke<'a, Vec<LogRecord>>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T> ConnectionExt<'_> for T
where T: Connection,