pub enum V2ipDecoderDetail {
Absent,
NeverAnswered,
Answered(V2ipDecoderReport),
}Expand description
What a statistics report says about the sink’s decoder.
The three states are distinct answers and only Self::Answered carries a
reading. valid follows the sink being configured rather than the sink
being enabled, so a sink that is switched off still reports: as
V2ipDecoderReason::IDLE, or from an older sender as
V2ipDecoderReason::NO_PACKETS, which is the same reading a sink whose
source has died produces.
Variants§
Absent
The report carried no decoder block: the sender’s firmware predates it.
NeverAnswered
The block is there and the decoder has never answered. Every field it would carry is meaningless, so none is offered.
Answered(V2ipDecoderReport)
A reading.
Implementations§
Source§impl V2ipDecoderDetail
impl V2ipDecoderDetail
Sourcepub const fn reading(self) -> Option<V2ipDecoderReport>
pub const fn reading(self) -> Option<V2ipDecoderReport>
The reading, for a caller that treats both of the other states as “nothing to show”.
Trait Implementations§
Source§impl Clone for V2ipDecoderDetail
impl Clone for V2ipDecoderDetail
Source§fn clone(&self) -> V2ipDecoderDetail
fn clone(&self) -> V2ipDecoderDetail
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 moreimpl Copy for V2ipDecoderDetail
Source§impl Debug for V2ipDecoderDetail
impl Debug for V2ipDecoderDetail
Source§impl Default for V2ipDecoderDetail
impl Default for V2ipDecoderDetail
Source§fn default() -> V2ipDecoderDetail
fn default() -> V2ipDecoderDetail
Returns the “default value” for a type. Read more
impl Eq for V2ipDecoderDetail
Source§impl PartialEq for V2ipDecoderDetail
impl PartialEq for V2ipDecoderDetail
impl StructuralPartialEq for V2ipDecoderDetail
Auto Trait Implementations§
impl Freeze for V2ipDecoderDetail
impl RefUnwindSafe for V2ipDecoderDetail
impl Send for V2ipDecoderDetail
impl Sync for V2ipDecoderDetail
impl Unpin for V2ipDecoderDetail
impl UnsafeUnpin for V2ipDecoderDetail
impl UnwindSafe for V2ipDecoderDetail
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