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§
Required Methods§
fn get_next( &self, ) -> Result<ResponseFuture<'_, Self::Transport, GetNext>, EncodeError>
Sourcefn wait_for_ready(
&self,
) -> Result<ResponseFuture<'_, Self::Transport, WaitForReady>, EncodeError>
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,
impl<___T> EventStreamClientSender for ClientSender<___T, EventStream>where
___T: Transport,
Source§fn wait_for_ready(
&self,
) -> Result<ResponseFuture<'_, Self::Transport, WaitForReady>, EncodeError>
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.