Struct prometheus::proto::Histogram
[−]
[src]
pub struct Histogram { // some fields omitted }
Methods
impl Histogram
[src]
fn new() -> Histogram
fn default_instance() -> &'static Histogram
fn clear_sample_count(&mut self)
fn has_sample_count(&self) -> bool
fn set_sample_count(&mut self, v: u64)
fn get_sample_count(&self) -> u64
fn clear_sample_sum(&mut self)
fn has_sample_sum(&self) -> bool
fn set_sample_sum(&mut self, v: f64)
fn get_sample_sum(&self) -> f64
fn clear_bucket(&mut self)
fn set_bucket(&mut self, v: RepeatedField<Bucket>)
fn mut_bucket(&mut self) -> &mut RepeatedField<Bucket>
fn take_bucket(&mut self) -> RepeatedField<Bucket>
fn get_bucket(&self) -> &[Bucket]
Trait Implementations
impl Default for Histogram
[src]
impl Clone for Histogram
[src]
fn clone(&self) -> Histogram
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Sync for Histogram
[src]
impl Message for Histogram
[src]
fn is_initialized(&self) -> bool
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
fn compute_size(&self) -> u32
fn write_to_with_cached_sizes(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
fn get_unknown_fields(&self) -> &UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn type_id(&self) -> TypeId
fn as_any(&self) -> &Any
fn descriptor(&self) -> &'static MessageDescriptor
fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>
fn write_length_delimited_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
fn check_initialized(&self) -> Result<(), ProtobufError>
fn write_to_writer(&self, w: &mut Write) -> Result<(), ProtobufError>
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn write_length_delimited_to_writer(&self, w: &mut Write) -> Result<(), ProtobufError>
fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
impl MessageStatic for Histogram
[src]
fn new() -> Histogram
fn descriptor_static(_: Option<Histogram>) -> &'static MessageDescriptor
impl Clear for Histogram
[src]
fn clear(&mut self)
impl PartialEq for Histogram
[src]
fn eq(&self, other: &Histogram) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.