Skip to main content

LogSinkClientHandler

Trait LogSinkClientHandler 

Source
pub trait LogSinkClientHandler<___T: Transport = Channel> {
    // Required method
    fn on_init(
        &mut self,
        request: Request<OnInit, ___T>,
    ) -> impl Future<Output = ()> + Send;

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        ordinal: u64,
    ) -> impl Future<Output = ()> + Send { ... }
}
Expand description

A client handler for the LogSink protocol.

See LogSink for more details.

Required Methods§

Source

fn on_init( &mut self, request: Request<OnInit, ___T>, ) -> impl Future<Output = ()> + Send

This event is sent whenever Archivist accepts a new connection. Clients may use the returned IOBuffer to write logs.

Provided Methods§

Source

fn on_unknown_interaction( &mut self, ordinal: u64, ) -> impl Future<Output = ()> + Send

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<___T> LogSinkClientHandler<___T> for IgnoreEvents
where ___T: Transport,

Source§

async fn on_init(&mut self, _: Request<OnInit, ___T>)

Source§

async fn on_unknown_interaction(&mut self, _: u64)

Implementors§