#[non_exhaustive]pub struct TmdsPolicy {
pub low_rate_scrambling: bool,
pub threshold: ScramblingThreshold,
pub tmds_config_gate: TmdsConfigGate,
}Expand description
The caller’s choices where HDMI sources differ.
DEFAULT (also Default): low-rate scrambling permitted, threshold
ScramblingThreshold::Above340, TMDS_Config written to any sink with SCDC.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.low_rate_scrambling: boolPermit scrambling at or below the threshold when the source and the sink can.
threshold: ScramblingThresholdWhich rate first requires scrambling and 1/40.
tmds_config_gate: TmdsConfigGateWhich sinks get the TMDS_Config write on a plain link.
Implementations§
Source§impl TmdsPolicy
impl TmdsPolicy
Sourcepub const DEFAULT: TmdsPolicy
pub const DEFAULT: TmdsPolicy
Low-rate scrambling permitted, threshold ScramblingThreshold::Above340.
Sourcepub const fn with_low_rate_scrambling(
self,
low_rate_scrambling: bool,
) -> TmdsPolicy
pub const fn with_low_rate_scrambling( self, low_rate_scrambling: bool, ) -> TmdsPolicy
This policy with low-rate scrambling permitted or not.
Sourcepub const fn with_threshold(self, threshold: ScramblingThreshold) -> TmdsPolicy
pub const fn with_threshold(self, threshold: ScramblingThreshold) -> TmdsPolicy
This policy with the given threshold.
Sourcepub const fn with_tmds_config_gate(
self,
tmds_config_gate: TmdsConfigGate,
) -> TmdsPolicy
pub const fn with_tmds_config_gate( self, tmds_config_gate: TmdsConfigGate, ) -> TmdsPolicy
This policy with the given TMDS_Config gate.
Trait Implementations§
Source§impl Clone for TmdsPolicy
impl Clone for TmdsPolicy
Source§fn clone(&self) -> TmdsPolicy
fn clone(&self) -> TmdsPolicy
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 TmdsPolicy
Source§impl Debug for TmdsPolicy
impl Debug for TmdsPolicy
Source§impl Default for TmdsPolicy
impl Default for TmdsPolicy
Source§fn default() -> TmdsPolicy
fn default() -> TmdsPolicy
Returns the “default value” for a type. Read more
impl Eq for TmdsPolicy
Source§impl Hash for TmdsPolicy
impl Hash for TmdsPolicy
Source§impl PartialEq for TmdsPolicy
impl PartialEq for TmdsPolicy
impl StructuralPartialEq for TmdsPolicy
Auto Trait Implementations§
impl Forget for TmdsPolicy
impl Freeze for TmdsPolicy
impl Move for TmdsPolicy
impl RefUnwindSafe for TmdsPolicy
impl Send for TmdsPolicy
impl Sync for TmdsPolicy
impl Unpin for TmdsPolicy
impl UnsafeUnpin for TmdsPolicy
impl UnwindSafe for TmdsPolicy
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