Skip to main content

Client

Trait Client 

Source
pub trait Client: Send {
    type Message;

    // Required method
    fn send(
        &self,
        msg: Self::Message,
    ) -> impl Future<Output = Result<(), SendError>> + Send;
}
Expand description

Cloud service client.

Required Associated Types§

Required Methods§

Source

fn send( &self, msg: Self::Message, ) -> impl Future<Output = Result<(), SendError>> + Send

Send a given log message to the cloud service.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§