Skip to main content

LogSinkLocalClientHandler

Trait LogSinkLocalClientHandler 

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

    // Provided method
    fn on_unknown_interaction(
        &mut self,
        ordinal: u64,
    ) -> impl Future<Output = ()> { ... }
}
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 = ()>

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 = ()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<___H, ___T> LogSinkLocalClientHandler<___T> for Local<___H>
where ___H: LogSinkClientHandler<___T>, ___T: Transport,

Source§

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

Source§

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

Implementors§