pub trait ComputeClient: GenericClient<ComputeCommand, ComputeResponse> { }Expand description
A client to a compute server.
Trait Implementations§
Source§impl GenericClient<ComputeCommand, ComputeResponse> for Box<dyn ComputeClient>
impl GenericClient<ComputeCommand, ComputeResponse> for Box<dyn ComputeClient>
Source§fn recv<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<ComputeResponse>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn recv<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Option<ComputeResponse>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
§Cancel safety
This method is cancel safe. If recv is used as the event in a tokio::select!
statement and some other branch completes first, it is guaranteed that no messages were
received by this client.