pub enum EdidError {
InvalidLength,
InvalidHeader,
ChecksumMismatch,
}Expand description
A fatal error that prevents useful parsing of an EDID byte stream.
Variants§
InvalidLength
The byte slice is shorter than a complete EDID block (128 bytes per block).
InvalidHeader
The fixed 8-byte EDID header was not found at offset 0.
ChecksumMismatch
The checksum byte does not make the block sum to zero.
Trait Implementations§
Source§impl Error for EdidError
impl Error for EdidError
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()
impl StructuralPartialEq for EdidError
Auto Trait Implementations§
impl Freeze for EdidError
impl RefUnwindSafe for EdidError
impl Send for EdidError
impl Sync for EdidError
impl Unpin for EdidError
impl UnsafeUnpin for EdidError
impl UnwindSafe for EdidError
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