pub struct V2ipDscpConfig {
pub video: Option<u8>,
pub audio: Option<u8>,
pub anc: Option<u8>,
}Expand description
The per-stream DSCP marking in a V2IP device configuration.
A stream whose wire byte carries no V2IP_DSCP_SET bit reads back as
None. Firmware treats the marking as all-or-nothing: it applies one only
when all three streams carry a value and otherwise falls back to the
default, so V2ipDscpConfig::is_complete reports which case a frame is in.
Fields§
§video: Option<u8>Marking for the video stream.
audio: Option<u8>Marking for the audio stream.
anc: Option<u8>Marking for the ancillary-data stream.
Implementations§
Source§impl V2ipDscpConfig
impl V2ipDscpConfig
Sourcepub const fn is_complete(&self) -> bool
pub const fn is_complete(&self) -> bool
Reports whether all three streams carry a marking, which is what firmware requires before it applies one.
Trait Implementations§
Source§impl Clone for V2ipDscpConfig
impl Clone for V2ipDscpConfig
Source§fn clone(&self) -> V2ipDscpConfig
fn clone(&self) -> V2ipDscpConfig
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 V2ipDscpConfig
Source§impl Debug for V2ipDscpConfig
impl Debug for V2ipDscpConfig
Source§impl Default for V2ipDscpConfig
impl Default for V2ipDscpConfig
Source§fn default() -> V2ipDscpConfig
fn default() -> V2ipDscpConfig
Returns the “default value” for a type. Read more
Source§impl Display for V2ipDscpConfig
impl Display for V2ipDscpConfig
impl Eq for V2ipDscpConfig
Source§impl PartialEq for V2ipDscpConfig
impl PartialEq for V2ipDscpConfig
impl StructuralPartialEq for V2ipDscpConfig
Auto Trait Implementations§
impl Freeze for V2ipDscpConfig
impl RefUnwindSafe for V2ipDscpConfig
impl Send for V2ipDscpConfig
impl Sync for V2ipDscpConfig
impl Unpin for V2ipDscpConfig
impl UnsafeUnpin for V2ipDscpConfig
impl UnwindSafe for V2ipDscpConfig
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