Struct prometheus::proto::MetricFamily
[−]
[src]
pub struct MetricFamily { /* fields omitted */ }
Methods
impl MetricFamily
[src]
fn new() -> MetricFamily
fn default_instance() -> &'static MetricFamily
fn clear_name(&mut self)
fn has_name(&self) -> bool
fn set_name(&mut self, v: String)
fn mut_name(&mut self) -> &mut String
fn take_name(&mut self) -> String
fn get_name(&self) -> &str
fn clear_help(&mut self)
fn has_help(&self) -> bool
fn set_help(&mut self, v: String)
fn mut_help(&mut self) -> &mut String
fn take_help(&mut self) -> String
fn get_help(&self) -> &str
fn clear_field_type(&mut self)
fn has_field_type(&self) -> bool
fn set_field_type(&mut self, v: MetricType)
fn get_field_type(&self) -> MetricType
fn clear_metric(&mut self)
fn set_metric(&mut self, v: RepeatedField<Metric>)
fn mut_metric(&mut self) -> &mut RepeatedField<Metric>
fn take_metric(&mut self) -> RepeatedField<Metric>
fn get_metric(&self) -> &[Metric]
Trait Implementations
impl PartialEq for MetricFamily
[src]
fn eq(&self, __arg_0: &MetricFamily) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MetricFamily) -> bool
This method tests for !=
.
impl Clone for MetricFamily
[src]
fn clone(&self) -> MetricFamily
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 Default for MetricFamily
[src]
fn default() -> MetricFamily
Returns the "default value" for a type. Read more
impl Sync for MetricFamily
[src]
impl Message for MetricFamily
[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<()>
&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 as_any(&self) -> &Any
fn as_any_mut(&mut self) -> &mut Any
fn into_any(self: Box<Self>) -> Box<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>
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
&self,
vec: &mut Vec<u8>
) -> 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>
&self,
w: &mut Write
) -> Result<(), ProtobufError>