pub struct StateSetValue {
pub states: Vec<State>,
}๐Deprecated:
OpenMetrics protobuf support is deprecated. Use prometheus_protobuf instead.
Available on crate feature
openmetrics_protobuf only.Expand description
Value for STATE_SET MetricPoint.
Fieldsยง
ยงstates: Vec<State>๐Deprecated:
OpenMetrics protobuf support is deprecated. Use prometheus_protobuf instead.
Optional.
Trait Implementationsยง
Sourceยงimpl Clone for StateSetValue
impl Clone for StateSetValue
Sourceยงfn clone(&self) -> StateSetValue
fn clone(&self) -> StateSetValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท 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 StateSetValue
impl Debug for StateSetValue
Sourceยงimpl Default for StateSetValue
impl Default for StateSetValue
Sourceยงimpl Message for StateSetValue
impl Message for StateSetValue
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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Sourceยงfn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Sourceยงfn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSourceยงfn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Sourceยงimpl PartialEq for StateSetValue
impl PartialEq for StateSetValue
Sourceยงfn eq(&self, other: &StateSetValue) -> bool
fn eq(&self, other: &StateSetValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StateSetValue
Auto Trait Implementationsยง
impl Freeze for StateSetValue
impl RefUnwindSafe for StateSetValue
impl Send for StateSetValue
impl Sync for StateSetValue
impl Unpin for StateSetValue
impl UnsafeUnpin for StateSetValue
impl UnwindSafe for StateSetValue
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