#[non_exhaustive]pub enum ModesetError {
NoModes,
NothingToWaitOn,
TimedOut,
InvalidSource,
Io(Errno),
}Expand description
Errors from mode selection and page-flip dispatch.
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.
NoModes
No usable mode. errc::no_such_device.
NothingToWaitOn
Nothing to wait on: the dispatcher holds no DRM descriptor and no
foreign sources. errc::bad_file_descriptor.
Surfaced up front rather than blocking forever on an empty epoll.
TimedOut
The wait budget elapsed with no events. errc::timed_out.
Never produced by an interrupted wait — see
PageFlip::dispatch and invariant 3.
InvalidSource
A descriptor was rejected: negative, or already registered.
errc::invalid_argument.
Io(Errno)
An underlying syscall failed.
Trait Implementations§
Source§impl Debug for ModesetError
impl Debug for ModesetError
Source§impl Display for ModesetError
impl Display for ModesetError
Source§impl Error for ModesetError
impl Error for ModesetError
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()
Auto Trait Implementations§
impl Freeze for ModesetError
impl RefUnwindSafe for ModesetError
impl Send for ModesetError
impl Sync for ModesetError
impl Unpin for ModesetError
impl UnsafeUnpin for ModesetError
impl UnwindSafe for ModesetError
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