pub trait Client {
    // Required method
    fn send(&self, write_key: &str, msg: &Message) -> Result<(), Error>;
}
Expand description

Client is a trait representing the HTTP transport layer of the analytics library.

Required Methods§

source

fn send(&self, write_key: &str, msg: &Message) -> Result<(), Error>

Send a single message to June using the given write key.

A write_key is an API key for June’s tracking API.

Implementors§