Trait EventStreamServerHandler

Source
pub trait EventStreamServerHandler<___T: Transport> {
    // Required methods
    fn get_next(
        &mut self,
        sender: &ServerSender<EventStream, ___T>,
        responder: Responder<GetNext>,
    ) -> impl Future<Output = ()> + Send;
    fn wait_for_ready(
        &mut self,
        sender: &ServerSender<EventStream, ___T>,
        responder: Responder<WaitForReady>,
    ) -> impl Future<Output = ()> + Send;
}
Expand description

A server handler for the EventStream protocol.

See EventStream for more details.

Required Methods§

Source

fn get_next( &mut self, sender: &ServerSender<EventStream, ___T>, responder: Responder<GetNext>, ) -> impl Future<Output = ()> + Send

Source

fn wait_for_ready( &mut self, sender: &ServerSender<EventStream, ___T>, responder: Responder<WaitForReady>, ) -> impl Future<Output = ()> + Send

Returns immediately. Used to indicate that the FIDL connection completed. This is needed for non-static streams to verify that subscribe has completed before components are started.

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.

Implementors§