pub struct OutlitBuilder { /* private fields */ }Expand description
Builder for Outlit client.
Implementations§
Source§impl OutlitBuilder
impl OutlitBuilder
Sourcepub fn new(public_key: impl Into<String>) -> Self
pub fn new(public_key: impl Into<String>) -> Self
Create a new builder with the given public key.
Sourcepub fn flush_interval(self, interval: Duration) -> Self
pub fn flush_interval(self, interval: Duration) -> Self
Set the flush interval.
Sourcepub fn max_batch_size(self, size: usize) -> Self
pub fn max_batch_size(self, size: usize) -> Self
Set the max batch size.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OutlitBuilder
impl RefUnwindSafe for OutlitBuilder
impl Send for OutlitBuilder
impl Sync for OutlitBuilder
impl Unpin for OutlitBuilder
impl UnwindSafe for OutlitBuilder
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