pub struct SyncClient { /* private fields */ }Expand description
Sync client for pushing events to the server
Implementations§
Source§impl SyncClient
impl SyncClient
Sourcepub fn new(config: SyncConfig) -> Result<Self>
pub fn new(config: SyncConfig) -> Result<Self>
Create a new sync client
Sourcepub async fn sync(&self, batch: EventBatch) -> Result<SyncResponse>
pub async fn sync(&self, batch: EventBatch) -> Result<SyncResponse>
Sync a batch of events to the server
This method handles:
- HMAC signature generation
- DNT (Do Not Track) checking
- Retry logic with exponential backoff
- Rate limit handling
Sourcepub fn config(&self) -> &SyncConfig
pub fn config(&self) -> &SyncConfig
Get the sync configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SyncClient
impl !RefUnwindSafe for SyncClient
impl Send for SyncClient
impl Sync for SyncClient
impl Unpin for SyncClient
impl !UnwindSafe for SyncClient
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