pub enum CounterValueField {
CounterValue(i64),
DoubleCounterValue(f64),
}
Expand description
A new value for a counter track. |track_uuid| should refer to a track with a CounterDescriptor, and |type| should be TYPE_COUNTER. For a more efficient encoding of counter values that are sampled at the beginning/end of a slice, see |extra_counter_values| and |extra_counter_track_uuids|. Counter values can optionally be encoded in as delta values (positive or negative) on each packet sequence (see CounterIncrementalBase).
Variants§
Implementations§
Source§impl CounterValueField
impl CounterValueField
Sourcepub fn merge<B>(
field: &mut Option<CounterValueField>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<CounterValueField>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for CounterValueField
impl Clone for CounterValueField
Source§fn clone(&self) -> CounterValueField
fn clone(&self) -> CounterValueField
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 CounterValueField
impl Debug for CounterValueField
Source§impl PartialEq for CounterValueField
impl PartialEq for CounterValueField
impl StructuralPartialEq for CounterValueField
Auto Trait Implementations§
impl Freeze for CounterValueField
impl RefUnwindSafe for CounterValueField
impl Send for CounterValueField
impl Sync for CounterValueField
impl Unpin for CounterValueField
impl UnwindSafe for CounterValueField
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