Skip to main content

TmdsEventKind

Enum TmdsEventKind 

Source
#[non_exhaustive]
pub enum TmdsEventKind {
Show 29 variants
#[non_exhaustive]
TearDownStarted { link: TmdsLinkParams, config: TearDownConfig, presence: SinkPresence, },
#[non_exhaustive]
TmdsConfigWritten { config: SinkTmdsConfig, },
#[non_exhaustive]
SinkClearSkipped { reason: SinkClearSkip, },
#[non_exhaustive]
ScramblerSet { enabled: bool, }, OutputStopped,
#[non_exhaustive]
ScdcStepFailed { step: TmdsStep, kind: DdcErrorKind, ends: bool, },
#[non_exhaustive]
PhyStepFailed { step: TmdsStep, ends: bool, },
#[non_exhaustive]
BringUpStarted { link: TmdsLinkParams, video: TmdsVideo, config: BringUpConfig, },
#[non_exhaustive]
TmdsConfigSkipped { reason: TmdsConfigSkip, },
#[non_exhaustive]
PhyConfigured { character_rate_khz: u32, clock_ratio: TmdsClockRatio, },
#[non_exhaustive]
WaitSpent { duration: Duration, },
#[non_exhaustive]
OutputStarted { after_write: Option<Duration>, },
#[non_exhaustive]
DeadlineMissed { by: Duration, },
#[non_exhaustive]
ScramblingChecked { check: ScramblingCheck<DdcErrorKind>, },
#[non_exhaustive]
VideoMismatch { link_rate_khz: u32, video_rate_khz: Option<u32>, },
#[non_exhaustive]
BringUpCancelled { at: CancelPoint, },
#[non_exhaustive]
BringUpEnded { failed_at: Option<TmdsStep>, cancelled: bool, }, FrlRateCleared,
#[non_exhaustive]
FltUpdateCleared { was_set: bool, },
#[non_exhaustive]
FrlClearSkipped { reason: FrlClearSkip, },
#[non_exhaustive]
SinkVersionRead { version: u8, },
#[non_exhaustive]
SourceVersionWritten { version: u8, },
#[non_exhaustive]
SourceVersionSkipped { reason: SourceVersionSkip, },
#[non_exhaustive]
ReconnectCheckStarted { link: TmdsLinkParams, current_sink: SinkTmdsFacts, },
#[non_exhaustive]
TmdsConfigRead { reading: TmdsConfigReading, },
#[non_exhaustive]
ReconnectCheckEnded { result: ReconnectCheck<DdcErrorKind>, },
#[non_exhaustive]
QuickRestoreStarted { link: TmdsLinkParams, config: BringUpConfig, },
#[non_exhaustive]
QuickRestoreEnded { failed_at: Option<TmdsStep>, },
#[non_exhaustive]
TearDownEnded { sink: SinkClear<DdcErrorKind>, scrambler_failed: bool, output_failed: bool, },
}
Expand description

What a procedure did, decided or saw.

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]
TearDownStarted

A tear-down started.

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.
§link: TmdsLinkParams

The running link it stops.

§config: TearDownConfig

Its settings.

§presence: SinkPresence

Whether the caller says the sink is still there.

§

#[non_exhaustive]
TmdsConfigWritten

The sink’s TMDS_Config was written.

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.
§config: SinkTmdsConfig

The value written.

§

#[non_exhaustive]
SinkClearSkipped

The sink’s TMDS_Config was not cleared, and why.

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.
§reason: SinkClearSkip

The rule that skipped it.

§

#[non_exhaustive]
ScramblerSet

The source’s scrambler was turned on or off.

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.
§enabled: bool

On or off.

§

OutputStopped

The output was stopped.

§

#[non_exhaustive]
ScdcStepFailed

An SCDC step failed.

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.
§step: TmdsStep

The step.

§kind: DdcErrorKind

The error’s kind; the error itself is in the outcome or the error.

§ends: bool

Whether it ends the procedure; false for a warning the procedure carries past.

§

#[non_exhaustive]
PhyStepFailed

A PHY step failed. The error is in the outcome or the error: a PHY error has no kind.

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.
§step: TmdsStep

The step.

§ends: bool

Whether it ends the procedure; false when the procedure attempts its later steps anyway, as tear-down does.

§

#[non_exhaustive]
BringUpStarted

A bring-up started.

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.
§link: TmdsLinkParams

The link it brings up.

§video: TmdsVideo

The video the link carries.

§config: BringUpConfig

Its settings.

§

#[non_exhaustive]
TmdsConfigSkipped

The sink’s TMDS_Config was not written, and why.

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.
§reason: TmdsConfigSkip

The rule that skipped it.

§

#[non_exhaustive]
PhyConfigured

The PHY was configured.

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.
§character_rate_khz: u32

The TMDS character rate, in kHz.

§clock_ratio: TmdsClockRatio

The clock ratio.

§

#[non_exhaustive]
WaitSpent

The wait after the sink’s write was spent: what was left of it once the steps since the write had run, possibly nothing.

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.
§duration: Duration

The time waited.

§

#[non_exhaustive]
OutputStarted

The output was started.

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.
§after_write: Option<Duration>

The time since the sink’s write; None when it came before the write or no write was due.

§

#[non_exhaustive]
DeadlineMissed

Scrambled output reached the sink later after its write than the deadline allows.

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.
§by: Duration

By how much.

§

#[non_exhaustive]
ScramblingChecked

The scrambling check ended: one event per window, not per read.

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.
§check: ScramblingCheck<DdcErrorKind>

What it found, with the first error’s kind in place of the error.

§

#[non_exhaustive]
VideoMismatch

A bring-up was refused before any I/O: the video’s TMDS character rate is not the link’s.

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.
§link_rate_khz: u32

The rate the link was chosen for.

§video_rate_khz: Option<u32>

The video’s rate; None for a video TMDS cannot carry.

§

#[non_exhaustive]
BringUpCancelled

A bring-up saw the caller’s cancel flag and stopped; the tear-down’s events follow, unless it was seen at entry.

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.
§at: CancelPoint

Where the flag was seen.

§

#[non_exhaustive]
BringUpEnded

A bring-up ended.

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.
§failed_at: Option<TmdsStep>

The step that stopped it; None when the link is up or the bring-up was cancelled.

§cancelled: bool

Whether the cancel flag stopped it.

§

FrlRateCleared

The sink’s Config_1 (the FRL rate) was cleared before a bring-up.

§

#[non_exhaustive]
FltUpdateCleared

The sink’s FLT_update was cleared before a bring-up.

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.
§was_set: bool

Whether it was set.

§

#[non_exhaustive]
FrlClearSkipped

The FRL clear before a bring-up was skipped, and why.

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.
§reason: FrlClearSkip

The rule that skipped it.

§

#[non_exhaustive]
SinkVersionRead

The sink’s Sink_Version was read.

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.
§version: u8

The value.

§

#[non_exhaustive]
SourceVersionWritten

Source_Version was written.

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.
§version: u8

The value.

§

#[non_exhaustive]
SourceVersionSkipped

Source_Version was not written, and why.

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.
§reason: SourceVersionSkip

The rule that skipped it.

§

#[non_exhaustive]
ReconnectCheckStarted

A reconnect check started.

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.
§link: TmdsLinkParams

The running link.

§current_sink: SinkTmdsFacts

The sink’s facts now, as the caller read them after the hotplug.

§

#[non_exhaustive]
TmdsConfigRead

The sink’s TMDS_Config was read.

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.
§reading: TmdsConfigReading

The register as read, with its byte.

§

#[non_exhaustive]
ReconnectCheckEnded

A reconnect check ended.

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.
§result: ReconnectCheck<DdcErrorKind>

What it found, with an error’s kind in place of the error.

§

#[non_exhaustive]
QuickRestoreStarted

A quick restore started.

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.
§link: TmdsLinkParams

The running link whose sink configuration it restores.

§config: BringUpConfig

The settings in force; the quick restore reads the TMDS_Config write’s two and the check’s timing.

§

#[non_exhaustive]
QuickRestoreEnded

A quick restore ended.

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.
§failed_at: Option<TmdsStep>

The step that stopped it; None when it ran to its end.

§

#[non_exhaustive]
TearDownEnded

A tear-down ended: what became of each part, without the error values.

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.
§sink: SinkClear<DdcErrorKind>

The sink’s clear, with an error’s kind in place of the error.

§scrambler_failed: bool

set_scrambling(false) failed.

§output_failed: bool

stop_output failed: the output may still run.

Trait Implementations§

Source§

impl Clone for TmdsEventKind

Source§

fn clone(&self) -> TmdsEventKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for TmdsEventKind

Source§

impl Debug for TmdsEventKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for TmdsEventKind

Source§

impl PartialEq for TmdsEventKind

Source§

fn eq(&self, other: &TmdsEventKind) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for TmdsEventKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.