pub struct Configuration { /* private fields */ }Expand description
The struct that represents options for the Datadog client in Prima.
Implementations§
Source§impl Configuration
impl Configuration
pub fn new(to_addr: &str, namespace: &str) -> Self
pub fn with_from_addr(self, from_addr: &str) -> Self
pub fn with_environment(self, environment: Environment) -> Self
pub fn with_tag<T: Display>(self, key: &str, value: &T) -> Self
pub fn with_country(self, country: Country) -> Self
pub fn with_tracker_configuration( self, tracker: TagTrackerConfiguration, ) -> Self
pub fn with_socket_path(self, socket_path: String) -> Self
pub fn with_batching_options(self, batching_options: BatchingOptions) -> Self
pub fn to_addr(&self) -> &str
pub fn from_addr(&self) -> &str
pub fn namespace(&self) -> &str
pub fn socket_path(&self) -> Option<String>
pub fn batching_options(&self) -> Option<BatchingOptions>
pub fn take_tracker_config(&mut self) -> TagTrackerConfiguration
Trait Implementations§
Source§impl From<Configuration> for Options
impl From<Configuration> for Options
Source§fn from(value: Configuration) -> Self
fn from(value: Configuration) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Configuration
impl !RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl !UnwindSafe for Configuration
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