#[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]TearDownStarted
A tear-down started.
Fields
This variant is marked as non-exhaustive
link: TmdsLinkParamsThe running link it stops.
config: TearDownConfigIts settings.
presence: SinkPresenceWhether 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
config: SinkTmdsConfigThe value written.
#[non_exhaustive]SinkClearSkipped
The sink’s TMDS_Config was not cleared, and why.
Fields
This variant is marked as non-exhaustive
reason: SinkClearSkipThe rule that skipped it.
#[non_exhaustive]ScramblerSet
The source’s scrambler was turned on or off.
Fields
This variant is marked as non-exhaustive
OutputStopped
The output was stopped.
#[non_exhaustive]ScdcStepFailed
An SCDC step failed.
Fields
This variant is marked as non-exhaustive
kind: DdcErrorKindThe error’s kind; the error itself is in the outcome or the error.
#[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]BringUpStarted
A bring-up started.
Fields
This variant is marked as non-exhaustive
link: TmdsLinkParamsThe link it brings up.
config: BringUpConfigIts settings.
#[non_exhaustive]TmdsConfigSkipped
The sink’s TMDS_Config was not written, and why.
Fields
This variant is marked as non-exhaustive
reason: TmdsConfigSkipThe rule that skipped it.
#[non_exhaustive]PhyConfigured
The PHY was configured.
Fields
This variant is marked as non-exhaustive
clock_ratio: TmdsClockRatioThe 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]OutputStarted
The output was started.
Fields
This variant is marked as non-exhaustive
#[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]ScramblingChecked
The scrambling check ended: one event per window, not per read.
Fields
This variant is marked as non-exhaustive
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]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
at: CancelPointWhere the flag was seen.
#[non_exhaustive]BringUpEnded
A bring-up ended.
Fields
This variant is marked as non-exhaustive
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]FrlClearSkipped
The FRL clear before a bring-up was skipped, and why.
Fields
This variant is marked as non-exhaustive
reason: FrlClearSkipThe rule that skipped it.
#[non_exhaustive]SinkVersionRead
The sink’s Sink_Version was read.
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]SourceVersionWritten
Source_Version was written.
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]SourceVersionSkipped
Source_Version was not written, and why.
Fields
This variant is marked as non-exhaustive
reason: SourceVersionSkipThe rule that skipped it.
#[non_exhaustive]ReconnectCheckStarted
A reconnect check started.
Fields
This variant is marked as non-exhaustive
link: TmdsLinkParamsThe running link.
current_sink: SinkTmdsFactsThe 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
reading: TmdsConfigReadingThe register as read, with its byte.
#[non_exhaustive]ReconnectCheckEnded
A reconnect check ended.
Fields
This variant is marked as non-exhaustive
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
link: TmdsLinkParamsThe running link whose sink configuration it restores.
config: BringUpConfigThe 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]TearDownEnded
A tear-down ended: what became of each part, without the error values.
Fields
This variant is marked as non-exhaustive
sink: SinkClear<DdcErrorKind>The sink’s clear, with an error’s kind in place of the error.
Trait Implementations§
Source§impl Clone for TmdsEventKind
impl Clone for TmdsEventKind
Source§fn clone(&self) -> TmdsEventKind
fn clone(&self) -> TmdsEventKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more