pub struct Config { /* private fields */ }Expand description
Immutable configuration object for crate::Client.
Config instances can be created using a ConfigBuilder.
Implementations§
Source§impl Config
impl Config
Sourcepub fn service_endpoints_builder(&self) -> &ServiceEndpointsBuilder
pub fn service_endpoints_builder(&self) -> &ServiceEndpointsBuilder
Returns the ServiceEndpointsBuilder
Sourcepub fn data_store_builder(&self) -> &dyn DataStoreFactory
pub fn data_store_builder(&self) -> &dyn DataStoreFactory
Returns the DataStoreFactory
Sourcepub fn data_source_builder(&self) -> &dyn DataSourceFactory
pub fn data_source_builder(&self) -> &dyn DataSourceFactory
Returns the DataSourceFactory
Sourcepub fn event_processor_builder(&self) -> &dyn EventProcessorFactory
pub fn event_processor_builder(&self) -> &dyn EventProcessorFactory
Returns the EventProcessorFactory
Sourcepub fn daemon_mode(&self) -> bool
pub fn daemon_mode(&self) -> bool
Returns the daemon mode status
Sourcepub fn application_tag(&self) -> &Option<String>
pub fn application_tag(&self) -> &Option<String>
Returns the tag builder if provided
Sourcepub fn instance_id(&self) -> &str
pub fn instance_id(&self) -> &str
Returns the per-SDK-instance identifier. This is a v4 UUID, generated once when the
Config is built, that is included in the X-LaunchDarkly-Instance-Id HTTP header
on outbound requests for the lifetime of the SDK instance.
Auto Trait Implementations§
impl Freeze for Config
impl !RefUnwindSafe for Config
impl !Send for Config
impl !Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl !UnwindSafe for Config
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more