pub enum OutputMetric<T> {
Unavailable,
Available(T),
Indeterminate(T),
}Expand description
A native metric whose support may be optional for an output plugin.
Variants§
The metric is semantically unavailable for this output category.
Available(T)
A non-sentinel value proves that the plugin is reporting the metric.
Indeterminate(T)
libobs returned the metric’s zero/sentinel value but its public API does not expose whether the optional plugin callback exists. This is intentionally not presented as a known zero.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for OutputMetric<T>
impl<T: Clone> Clone for OutputMetric<T>
Source§impl<T: Debug> Debug for OutputMetric<T>
impl<T: Debug> Debug for OutputMetric<T>
Source§impl<T: PartialEq> PartialEq for OutputMetric<T>
impl<T: PartialEq> PartialEq for OutputMetric<T>
impl<T: PartialEq> StructuralPartialEq for OutputMetric<T>
Auto Trait Implementations§
impl<T> Forget for OutputMetric<T>
impl<T> Freeze for OutputMetric<T>where
T: Freeze,
impl<T> Move for OutputMetric<T>
impl<T> RefUnwindSafe for OutputMetric<T>where
T: RefUnwindSafe,
impl<T> Send for OutputMetric<T>where
T: Send,
impl<T> Sync for OutputMetric<T>where
T: Sync,
impl<T> Unpin for OutputMetric<T>where
T: Unpin,
impl<T> UnsafeUnpin for OutputMetric<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for OutputMetric<T>where
T: UnwindSafe,
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