#[non_exhaustive]pub enum MetadataWriteError {
NotBaseBlock,
InvalidChromaticityValue {
value: u16,
},
InvalidStandardTiming {
horizontal_pixels: u16,
refresh_rate_hz: u8,
},
ReservedStandardTimingEncoding,
InvalidReservedStandardTimingEncoding {
raw: [u8; 2],
},
}Expand description
Errors returned while encoding the newly added base-block metadata views.
This is separate from MetadataError so existing exhaustive matches on
that public 0.1 enum remain source-compatible.
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.
NotBaseBlock
The block does not contain the EDID base-block header.
InvalidChromaticityValue
A chromaticity coordinate exceeds its 10-bit EDID representation.
InvalidStandardTiming
A standard timing cannot be represented by its two-byte encoding.
Fields
ReservedStandardTimingEncoding
A standard timing collides with the EDID unused-slot encoding.
InvalidReservedStandardTimingEncoding
A reserved standard-timing entry contains a valid mode encoding.
Trait Implementations§
Source§impl Clone for MetadataWriteError
impl Clone for MetadataWriteError
Source§impl Debug for MetadataWriteError
impl Debug for MetadataWriteError
Source§impl Display for MetadataWriteError
impl Display for MetadataWriteError
impl Eq for MetadataWriteError
Source§impl Error for MetadataWriteError
impl Error for MetadataWriteError
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 From<MetadataWriteError> for BaseBlockError
impl From<MetadataWriteError> for BaseBlockError
Source§fn from(e: MetadataWriteError) -> Self
fn from(e: MetadataWriteError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MetadataWriteError
impl PartialEq for MetadataWriteError
impl StructuralPartialEq for MetadataWriteError
Auto Trait Implementations§
impl Freeze for MetadataWriteError
impl RefUnwindSafe for MetadataWriteError
impl Send for MetadataWriteError
impl Sync for MetadataWriteError
impl Unpin for MetadataWriteError
impl UnsafeUnpin for MetadataWriteError
impl UnwindSafe for MetadataWriteError
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