pub enum DisplayModeError {
OutOfMemory(OutOfMemory),
UnsupportedDisplayMode,
}
Expand description
Error occurring on display modes operations.
Variants§
OutOfMemory(OutOfMemory)
Out of either host or device memory.
UnsupportedDisplayMode
Unsupported resolution and refresh rate combination
Trait Implementations§
Source§impl Clone for DisplayModeError
impl Clone for DisplayModeError
Source§fn clone(&self) -> DisplayModeError
fn clone(&self) -> DisplayModeError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DisplayModeError
impl Debug for DisplayModeError
Source§impl Display for DisplayModeError
impl Display for DisplayModeError
Source§impl Error for DisplayModeError
impl Error for DisplayModeError
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<OutOfMemory> for DisplayModeError
impl From<OutOfMemory> for DisplayModeError
Source§fn from(source: OutOfMemory) -> Self
fn from(source: OutOfMemory) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DisplayModeError
impl PartialEq for DisplayModeError
impl StructuralPartialEq for DisplayModeError
Auto Trait Implementations§
impl Freeze for DisplayModeError
impl RefUnwindSafe for DisplayModeError
impl Send for DisplayModeError
impl Sync for DisplayModeError
impl Unpin for DisplayModeError
impl UnwindSafe for DisplayModeError
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