#[non_exhaustive]pub enum ParamsError {
#[non_exhaustive] ScramblingUnsupported {
rate_khz: u32,
no_scdc: bool,
no_scrambling_support: bool,
source_cannot_scramble: bool,
},
#[non_exhaustive] AboveSourceMaximum {
rate_khz: u32,
max_khz: u32,
},
}Expand description
Why TmdsLinkParams::choose refused the inputs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
#[non_exhaustive]ScramblingUnsupported
The rate is above 340 000 kHz, so the link must be scrambled, but the sink cannot take scrambling or the source cannot scramble. Every missing fact is set; at least one is.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
no_scrambling_support: boolThe sink does not support scrambling
(SinkTmdsFacts::scrambling_supported
is clear).
§
source_cannot_scramble: boolThe source has no TMDS scrambler
(SourceTmdsFacts::scrambling is clear).
#[non_exhaustive]AboveSourceMaximum
The rate is above the source’s own highest TMDS character rate
(SourceTmdsFacts::max_character_rate_khz).
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Trait Implementations§
Source§impl Clone for ParamsError
impl Clone for ParamsError
Source§fn clone(&self) -> ParamsError
fn clone(&self) -> ParamsError
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 ParamsError
Source§impl Debug for ParamsError
impl Debug for ParamsError
Source§impl Display for ParamsError
impl Display for ParamsError
impl Eq for ParamsError
Source§impl Error for ParamsError
impl Error for ParamsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Hash for ParamsError
impl Hash for ParamsError
Source§impl PartialEq for ParamsError
impl PartialEq for ParamsError
impl StructuralPartialEq for ParamsError
Auto Trait Implementations§
impl Forget for ParamsError
impl Freeze for ParamsError
impl Move for ParamsError
impl RefUnwindSafe for ParamsError
impl Send for ParamsError
impl Sync for ParamsError
impl Unpin for ParamsError
impl UnsafeUnpin for ParamsError
impl UnwindSafe for ParamsError
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