pub struct Builder { /* private fields */ }Expand description
The Aptabase client builder
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn with_options(self, opts: InitOptions) -> Self
pub fn with_options(self, opts: InitOptions) -> Self
Sets custom options to use for the Aptabase client.
Sourcepub fn with_session_id(self, session_id: impl Into<String>) -> Self
pub fn with_session_id(self, session_id: impl Into<String>) -> Self
Sets the initial session ID.
Sourcepub fn with_polling(self, enable: bool) -> Self
pub fn with_polling(self, enable: bool) -> Self
Sets whether polling should be enabled.
Sourcepub fn with_panic_hook(self, hook: PanicHook) -> Self
pub fn with_panic_hook(self, hook: PanicHook) -> Self
Sets a custom panic hook.
Sourcepub fn with_default_panic_hook(self) -> Self
pub fn with_default_panic_hook(self) -> Self
Enables the default panic hook.
Sourcepub fn build(self) -> Arc<AptabaseClient> ⓘ
pub fn build(self) -> Arc<AptabaseClient> ⓘ
Builds and initializes the client
Auto Trait Implementations§
impl !RefUnwindSafe for Builder
impl !UnwindSafe for Builder
impl Freeze for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnsafeUnpin 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