Trait xray_lite::Client

source ·
pub trait Client: Clone + Debug + Send + Sync {
    // Required method
    fn send<S>(&self, data: &S) -> Result<()>
       where S: Serialize;
}
Expand description

X-Ray client interface.

Required Methods§

source

fn send<S>(&self, data: &S) -> Result<()>
where S: Serialize,

Sends a segment to the xray daemon this client is connected to.

Object Safety§

This trait is not object safe.

Implementors§