#[non_exhaustive]pub enum ProtocolError {
UnknownFrlRate(u8),
FfeLevelsOutOfRange {
rate: HdmiForumFrl,
levels: u8,
},
}Expand description
What culvert refuses because it would violate the SCDC protocol.
Every value a sink can report decodes (an undefined link training request is
LtpReq::Reserved), so these come from requests, not from
register content.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownFrlRate(u8)
The sink reported an FRL rate value not defined by HDMI 2.1.
The inner value is the raw 4-bit field read directly from the SCDC register. It is exposed so callers can log or diagnose misbehaving sinks, not because it carries semantic meaning — any value outside the defined set is treated as a protocol violation regardless of its numeric value.
Not currently returned: no culvert method reads an FRL rate back from the sink.
FfeLevelsOutOfRange
The requested FFE levels exceed the maximum allowed at the requested FRL rate
(see FfeLevels::max_for). A sink treats a
prohibited value as 0, so it is rejected before anything is written.
Trait Implementations§
Source§impl Clone for ProtocolError
impl Clone for ProtocolError
Source§fn clone(&self) -> ProtocolError
fn clone(&self) -> ProtocolError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ProtocolError
Source§impl Debug for ProtocolError
impl Debug for ProtocolError
Source§impl Display for ProtocolError
impl Display for ProtocolError
impl Eq for ProtocolError
Source§impl Error for ProtocolError
impl Error for ProtocolError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()