pub struct Client { /* private fields */ }
Expand description
Client for interacting with the AXCP server.
Implementations§
Source§impl Client
impl Client
Sourcepub fn new(config: ClientConfig) -> Result<Self>
pub fn new(config: ClientConfig) -> Result<Self>
Creates a new client with the given configuration.
Sourcepub async fn send_telemetry(&self, batch: TelemetryBatch) -> Result<()>
pub async fn send_telemetry(&self, batch: TelemetryBatch) -> Result<()>
Sends a batch of telemetry data to the server.
Sourcepub fn telemetry(&self) -> TelemetryClient
pub fn telemetry(&self) -> TelemetryClient
Creates a telemetry client for sending metrics.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more