#[non_exhaustive]pub struct MonitoringComponentConfig {
pub enable_components: Vec<Component>,
/* private fields */
}
Expand description
MonitoringComponentConfig is cluster monitoring component configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.enable_components: Vec<Component>
Select components to collect metrics. An empty set would disable all monitoring.
Implementations§
Source§impl MonitoringComponentConfig
impl MonitoringComponentConfig
pub fn new() -> Self
Sourcepub fn set_enable_components<T, V>(self, v: T) -> Self
pub fn set_enable_components<T, V>(self, v: T) -> Self
Sets the value of enable_components.
Trait Implementations§
Source§impl Clone for MonitoringComponentConfig
impl Clone for MonitoringComponentConfig
Source§fn clone(&self) -> MonitoringComponentConfig
fn clone(&self) -> MonitoringComponentConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MonitoringComponentConfig
impl Debug for MonitoringComponentConfig
Source§impl Default for MonitoringComponentConfig
impl Default for MonitoringComponentConfig
Source§fn default() -> MonitoringComponentConfig
fn default() -> MonitoringComponentConfig
Returns the “default value” for a type. Read more
Source§impl Message for MonitoringComponentConfig
impl Message for MonitoringComponentConfig
impl StructuralPartialEq for MonitoringComponentConfig
Auto Trait Implementations§
impl Freeze for MonitoringComponentConfig
impl RefUnwindSafe for MonitoringComponentConfig
impl Send for MonitoringComponentConfig
impl Sync for MonitoringComponentConfig
impl Unpin for MonitoringComponentConfig
impl UnwindSafe for MonitoringComponentConfig
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