pub trait LogSinkServerHandler<___T: Transport = Channel> {
// Required methods
fn wait_for_interest_change(
&mut self,
responder: Responder<WaitForInterestChange, ___T>,
) -> impl Future<Output = ()> + Send;
fn connect_structured(
&mut self,
request: Request<ConnectStructured, ___T>,
) -> impl Future<Output = ()> + Send;
// Provided method
fn on_unknown_interaction(
&mut self,
ordinal: u64,
) -> impl Future<Output = ()> + Send { ... }
}Expand description
A server handler for the LogSink protocol.
See LogSink for more details.
Required Methods§
Sourcefn wait_for_interest_change(
&mut self,
responder: Responder<WaitForInterestChange, ___T>,
) -> impl Future<Output = ()> + Send
fn wait_for_interest_change( &mut self, responder: Responder<WaitForInterestChange, ___T>, ) -> impl Future<Output = ()> + Send
LogSink implementers will return to this hanging-get whenever the scope of their interest changes. Clients are expected to emit messages based on the registered Interest. In the event that an empty interest is conveyed, clients should emit messages based on their default e.g. compile time configuration. Each client may only poll this once at a time. Invoking WaitForInterestChange a second time before the first call returns will result in an error being returned.
Sourcefn connect_structured(
&mut self,
request: Request<ConnectStructured, ___T>,
) -> impl Future<Output = ()> + Send
fn connect_structured( &mut self, request: Request<ConnectStructured, ___T>, ) -> impl Future<Output = ()> + Send
Send this socket to be drained, using the structured logs format.
See Encoding structured records for what is expected to be received over the socket.
Provided Methods§
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.