pub enum DrmError {
Show 18 variants
DrmMasterFailed,
Access(AccessError),
UnableToGetDeviceId(Errno),
DeviceInactive,
ModeNotSuitable(Mode),
CrtcAlreadyInUse(Handle),
SurfaceWithoutConnectors(Handle),
PlaneNotCompatible(Handle, Handle),
NoPlane,
NonPrimaryPlane(Handle),
NoFramebuffer(Handle),
UnsupportedPlaneConfiguration(Handle),
NoSuitableEncoder {
connector: Handle,
crtc: Handle,
},
UnknownConnector(Handle),
UnknownCrtc(Handle),
UnknownPlane(Handle),
UnknownProperty {
handle: RawResourceHandle,
name: &'static str,
},
TestFailed(Handle),
}
backend_drm
only.Expand description
Errors thrown by the DrmDevice
and the DrmSurface
.
Variants§
DrmMasterFailed
Unable to acquire DRM master
Access(AccessError)
The DrmDevice
encountered an access error
UnableToGetDeviceId(Errno)
Unable to determine device id of drm device
DeviceInactive
Device is currently paused
ModeNotSuitable(Mode)
Mode is not compatible with all given connectors
CrtcAlreadyInUse(Handle)
The given crtc is already in use by another surface
SurfaceWithoutConnectors(Handle)
This operation would result in a surface without connectors.
PlaneNotCompatible(Handle, Handle)
The given plane cannot be used with the given crtc
NoPlane
The given configuration does not specify a plane which is not supported by the underlying implementation
NonPrimaryPlane(Handle)
The given plane is not a primary plane and therefor not supported by the underlying implementation
NoFramebuffer(Handle)
The given plane does not allow to clear the framebuffer
UnsupportedPlaneConfiguration(Handle)
The configuration is not supported on the given plane
NoSuitableEncoder
No encoder was found for a given connector on the set crtc
UnknownConnector(Handle)
Unknown connector handle
UnknownCrtc(Handle)
Unknown crtc handle
UnknownPlane(Handle)
Unknown crtc handle
UnknownProperty
The DrmDevice is missing a required property
TestFailed(Handle)
Atomic Test failed for new properties
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<AccessError> for Error
impl From<AccessError> for Error
Source§fn from(source: AccessError) -> Self
fn from(source: AccessError) -> Self
Source§impl<A, B, F, R> From<Error> for DrmOutputManagerError<A, B, F, R>
Available on crate features wayland_frontend
and backend_gbm
only.
impl<A, B, F, R> From<Error> for DrmOutputManagerError<A, B, F, R>
wayland_frontend
and backend_gbm
only.Source§impl<E: Error + Send + Sync + 'static> From<Error> for Error<E>
Available on crate feature backend_gbm
only.
impl<E: Error + Send + Sync + 'static> From<Error> for Error<E>
backend_gbm
only.Source§impl<A: Error + Send + Sync + 'static, B: Error + Send + Sync + 'static, F: Error + Send + Sync + 'static> From<Error> for FrameError<A, B, F>
Available on crate features wayland_frontend
and backend_gbm
only.
impl<A: Error + Send + Sync + 'static, B: Error + Send + Sync + 'static, F: Error + Send + Sync + 'static> From<Error> for FrameError<A, B, F>
wayland_frontend
and backend_gbm
only.Source§impl From<Error> for SwapBuffersError
impl From<Error> for SwapBuffersError
Source§fn from(err: Error) -> SwapBuffersError
fn from(err: Error) -> SwapBuffersError
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.