pub trait EventStreamLocalServerHandler<___T: Transport = Channel> {
// Required methods
fn get_next(
&mut self,
responder: Responder<GetNext, ___T>,
) -> impl Future<Output = ()>;
fn wait_for_ready(
&mut self,
responder: Responder<WaitForReady, ___T>,
) -> impl Future<Output = ()>;
}Expand description
A server handler for the EventStream protocol.
See EventStream for more details.
Required Methods§
fn get_next( &mut self, responder: Responder<GetNext, ___T>, ) -> impl Future<Output = ()>
Sourcefn wait_for_ready(
&mut self,
responder: Responder<WaitForReady, ___T>,
) -> impl Future<Output = ()>
fn wait_for_ready( &mut self, responder: Responder<WaitForReady, ___T>, ) -> impl Future<Output = ()>
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.