pub struct Builder { /* private fields */ }Implementations§
Source§impl Builder
impl Builder
pub fn new() -> Self
pub fn set_distinct_id( &mut self, distinct_id: impl Into<DistinctId>, ) -> &mut Self
pub fn set_device_id(&mut self, device_id: impl Into<DeviceId>) -> &mut Self
pub fn set_facts(&mut self, facts: Map) -> &mut Self
pub fn set_groups(&mut self, groups: Map) -> &mut Self
pub fn add_fact( &mut self, key: impl Into<String> + Debug, value: impl Into<Value>, ) -> &mut Self
pub fn set_endpoint(&mut self, endpoint: impl Into<String>) -> &mut Self
pub fn set_timeout(&mut self, duration: impl Into<Duration>) -> &mut Self
pub async fn try_set_ssl_cert_file( &mut self, ssl_cert_file: impl AsRef<Path> + Debug, ) -> Result<&mut Self, TransportsError>
pub fn set_proxy(&mut self, proxy: Url) -> &mut Self
pub async fn build(self) -> Result<(Recorder, Worker), TransportsError>
pub async fn build_with_snapshotter<S: SystemSnapshotter>( self, snapshotter: S, ) -> Result<(Recorder, Worker), TransportsError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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