Enum drm::SystemError
source · [−]pub enum SystemError {
InvalidFileDescriptor,
MemoryFault,
InvalidArgument,
InvalidFileType,
PermissionDenied,
Unknown {
errno: Errno,
},
}
Expand description
A general system error that can be returned by any DRM command.
Receiving this error likely indicates a bug in either the program, this crate, or the underlying operating system.
Variants
InvalidFileDescriptor
A command was attempted using an invalid file descriptor.
MemoryFault
Provided memory area is inaccessible.
Receiving this error indicates a bug in this crate.
InvalidArgument
One or more arguments used are invalid.
This can be due to the system not supporting a feature or value.
InvalidFileType
A command was attempted using a non-DRM device.
PermissionDenied
Permission denied.
Unknown
Fields
errno: Errno
Unknown nix::errno::Errno
returned by the system call.
Unknown system error.
Trait Implementations
Performs the conversion.