#[non_exhaustive]pub enum SerializeError {
InvalidExistingLength {
actual: usize,
},
InvalidExistingBlock {
index: usize,
source: EdidError,
},
ExtensionCountMismatch {
declared: usize,
actual: usize,
},
TimingUnavailable {
index: usize,
},
TimingDoesNotFit {
index: usize,
},
NoDtdSlot {
index: usize,
},
InvalidTiming {
index: usize,
source: DtdError,
},
TooManyExtensions {
count: usize,
},
}Expand description
Errors returned by the strict resolution-to-EDID serializer.
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.
InvalidExistingLength
Existing input is not an integral sequence of EDID blocks.
InvalidExistingBlock
An existing block failed strict validation.
ExtensionCountMismatch
The base block’s extension count disagrees with the supplied blocks.
Fields
A requested resolution could not produce a timing.
TimingDoesNotFit
A computed timing exceeds DTD field limits.
NoDtdSlot
No reusable DTD slot remains for a requested timing.
InvalidTiming
A manually supplied timing failed DTD validation.
TooManyExtensions
The extension count cannot be represented by the base block byte.
Trait Implementations§
Source§impl Clone for SerializeError
impl Clone for SerializeError
Source§impl Debug for SerializeError
impl Debug for SerializeError
Source§impl Display for SerializeError
impl Display for SerializeError
impl Eq for SerializeError
Source§impl Error for SerializeError
impl Error for SerializeError
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 PartialEq for SerializeError
impl PartialEq for SerializeError
impl StructuralPartialEq for SerializeError
Auto Trait Implementations§
impl Freeze for SerializeError
impl RefUnwindSafe for SerializeError
impl Send for SerializeError
impl Sync for SerializeError
impl Unpin for SerializeError
impl UnsafeUnpin for SerializeError
impl UnwindSafe for SerializeError
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