[][src]Trait analytics::client::Client

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

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

Required methods

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

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

A write_key is an API key for Segment's tracking API. See Segment's documentation for how to find this value.

Loading content...

Implementors

impl Client for HttpClient[src]

Loading content...