pub struct FleetClient { /* private fields */ }Expand description
A client for interacting with the Burn Central Fleet API.
Implementations§
Source§impl FleetClient
impl FleetClient
Sourcepub fn register(
&self,
registration_token: impl Into<String>,
identity_key: impl Into<String>,
metadata: Option<Value>,
) -> Result<FleetDeviceAuthTokenResponse, ClientError>
pub fn register( &self, registration_token: impl Into<String>, identity_key: impl Into<String>, metadata: Option<Value>, ) -> Result<FleetDeviceAuthTokenResponse, ClientError>
Register the device and exchange credentials for a JWT.
Sourcepub fn sync(
&self,
token: impl AsRef<str>,
metadata: Option<Value>,
) -> Result<FleetSyncSnapshotResponse, ClientError>
pub fn sync( &self, token: impl AsRef<str>, metadata: Option<Value>, ) -> Result<FleetSyncSnapshotResponse, ClientError>
Sync device state with the fleet.
Sourcepub fn model_download(
&self,
auth_token: impl AsRef<str>,
) -> Result<FleetModelDownloadResponse, ClientError>
pub fn model_download( &self, auth_token: impl AsRef<str>, ) -> Result<FleetModelDownloadResponse, ClientError>
Get the model download information for the device’s assigned fleet.
Sourcepub fn ingest_telemetry(
&self,
auth_token: impl AsRef<str>,
events: TelemetryIngestionEvents,
) -> Result<(), ClientError>
pub fn ingest_telemetry( &self, auth_token: impl AsRef<str>, events: TelemetryIngestionEvents, ) -> Result<(), ClientError>
Ingest telemetry events for a fleet device.
Trait Implementations§
Source§impl Clone for FleetClient
impl Clone for FleetClient
Source§fn clone(&self) -> FleetClient
fn clone(&self) -> FleetClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FleetClient
impl !RefUnwindSafe for FleetClient
impl Send for FleetClient
impl Sync for FleetClient
impl Unpin for FleetClient
impl UnsafeUnpin for FleetClient
impl !UnwindSafe for FleetClient
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