pub struct MetricsConfig { /* private fields */ }Expand description
Configuration for MetricsPlugin and MetricsRequestHook.
Implementations§
Source§impl MetricsConfig
Inherent builders for MetricsConfig.
impl MetricsConfig
Inherent builders for MetricsConfig.
Sourcepub fn with_endpoint<E>(self, endpoint: E) -> Self
pub fn with_endpoint<E>(self, endpoint: E) -> Self
Sourcepub fn with_namespace<N>(self, namespace: N) -> Self
pub fn with_namespace<N>(self, namespace: N) -> Self
Source§impl MetricsConfig
impl MetricsConfig
pub fn get_endpoint(&self) -> &String
pub fn get_mut_endpoint(&mut self) -> &mut String
pub fn set_endpoint(&mut self, val: String) -> &mut Self
pub fn get_namespace(&self) -> &String
pub fn get_mut_namespace(&mut self) -> &mut String
pub fn set_namespace(&mut self, val: String) -> &mut Self
pub fn get_bearer_token(&self) -> Option<String>
pub fn try_get_bearer_token(&self) -> Option<String>
pub fn get_mut_bearer_token(&mut self) -> &mut Option<String>
pub fn set_bearer_token(&mut self, val: Option<String>) -> &mut Self
Trait Implementations§
Source§impl Clone for MetricsConfig
impl Clone for MetricsConfig
Source§impl Debug for MetricsConfig
impl Debug for MetricsConfig
Source§impl Default for MetricsConfig
Default construction for MetricsConfig.
impl Default for MetricsConfig
Default construction for MetricsConfig.
Source§fn default() -> Self
fn default() -> Self
Constructs a default MetricsConfig exposing /metrics under namespace "hyperlane".
impl Eq for MetricsConfig
Source§impl PartialEq for MetricsConfig
impl PartialEq for MetricsConfig
impl StructuralPartialEq for MetricsConfig
Auto Trait Implementations§
impl Forget for MetricsConfig
impl Freeze for MetricsConfig
impl Move for MetricsConfig
impl RefUnwindSafe for MetricsConfig
impl Send for MetricsConfigwhere
RawVecInner: Send,
impl Sync for MetricsConfigwhere
RawVecInner: Sync,
impl Unpin for MetricsConfig
impl UnsafeUnpin for MetricsConfig
impl UnwindSafe for MetricsConfigwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.