pub struct HistogramRule {
pub histogram_name_hash: Option<u64>,
pub histogram_min_trigger: Option<i64>,
pub histogram_max_trigger: Option<i64>,
}
Expand description
Configuration of histogram trigger.
Fields§
§histogram_name_hash: Option<u64>
UMA histogram name hash, same as HistogramEventProto.name_hash.
histogram_min_trigger: Option<i64>
Range of values of the histogram that activates trigger.
histogram_max_trigger: Option<i64>
Implementations§
Source§impl HistogramRule
impl HistogramRule
Sourcepub fn histogram_name_hash(&self) -> u64
pub fn histogram_name_hash(&self) -> u64
Returns the value of histogram_name_hash
, or the default value if histogram_name_hash
is unset.
Sourcepub fn histogram_min_trigger(&self) -> i64
pub fn histogram_min_trigger(&self) -> i64
Returns the value of histogram_min_trigger
, or the default value if histogram_min_trigger
is unset.
Sourcepub fn histogram_max_trigger(&self) -> i64
pub fn histogram_max_trigger(&self) -> i64
Returns the value of histogram_max_trigger
, or the default value if histogram_max_trigger
is unset.
Trait Implementations§
Source§impl Clone for HistogramRule
impl Clone for HistogramRule
Source§fn clone(&self) -> HistogramRule
fn clone(&self) -> HistogramRule
Returns a copy 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 HistogramRule
impl Debug for HistogramRule
Source§impl Default for HistogramRule
impl Default for HistogramRule
Source§impl Message for HistogramRule
impl Message for HistogramRule
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for HistogramRule
impl PartialEq for HistogramRule
impl StructuralPartialEq for HistogramRule
Auto Trait Implementations§
impl Freeze for HistogramRule
impl RefUnwindSafe for HistogramRule
impl Send for HistogramRule
impl Sync for HistogramRule
impl Unpin for HistogramRule
impl UnwindSafe for HistogramRule
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