Enum smithay::backend::drm::DrmError [−][src]
pub enum DrmError { DrmMasterFailed, Access { errmsg: &'static str, dev: Option<PathBuf>, source: SystemError, }, UnableToGetDeviceId(Error), DeviceInactive, ModeNotSuitable(Mode), CrtcAlreadyInUse(Handle), SurfaceWithoutConnectors(Handle), PlaneNotCompatible(Handle, Handle), NonPrimaryPlane(Handle), NoSuitableEncoder { connector: Handle, crtc: Handle, }, UnknownProperty { handle: RawResourceHandle, name: &'static str, }, TestFailed(Handle), }
Expand description
Errors thrown by the DrmDevice
and the DrmSurface
.
Variants
Unable to acquire DRM master
The DrmDevice
encountered an access error
Fields of Access
errmsg: &'static str
Error message associated to the access error
dev: Option<PathBuf>
Device on which the error was generated
source: SystemError
Underlying device error
UnableToGetDeviceId(Error)
Unable to determine device id of drm device
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.
The given plane cannot be used with the given crtc
NonPrimaryPlane(Handle)
The given plane is not a primary plane and therefor not supported by the underlying implementation
No encoder was found for a given connector on the set crtc
The DrmDevice is missing a required property
Fields of UnknownProperty
TestFailed(Handle)
Atomic Test failed for new properties
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert 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
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
pub fn vzip(self) -> V