Trait EventStreamClientSender

Source
pub trait EventStreamClientSender {
    type Transport: Transport;

    // Required methods
    fn get_next(
        &self,
    ) -> Result<ResponseFuture<'_, Self::Transport, GetNext>, EncodeError>;
    fn wait_for_ready(
        &self,
    ) -> Result<ResponseFuture<'_, Self::Transport, WaitForReady>, EncodeError>;
}
Expand description

A helper trait for the EventStream client sender.

Required Associated Types§

Source

type Transport: Transport

Required Methods§

Source

fn get_next( &self, ) -> Result<ResponseFuture<'_, Self::Transport, GetNext>, EncodeError>

Source

fn wait_for_ready( &self, ) -> Result<ResponseFuture<'_, Self::Transport, WaitForReady>, EncodeError>

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.

Implementations on Foreign Types§

Source§

impl<___T> EventStreamClientSender for ClientSender<___T, EventStream>
where ___T: Transport,

Source§

fn wait_for_ready( &self, ) -> Result<ResponseFuture<'_, Self::Transport, WaitForReady>, EncodeError>

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.

Source§

type Transport = ___T

Source§

fn get_next( &self, ) -> Result<ResponseFuture<'_, Self::Transport, GetNext>, EncodeError>

Implementors§