Trait segment::Client [−][src]
pub trait Client {
fn send<'life0, 'async_trait>(
&'life0 self,
write_key: String,
msg: Message
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Client
is a trait representing the HTTP transport layer of the analytics library.
Required methods
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.