Enum drm_ffi::result::SystemError[][src]

pub enum SystemError {
    InvalidFileDescriptor,
    MemoryFault,
    InvalidArgument,
    InvalidFileType,
    PermissionDenied,
    Unknown {
        errno: Errno,
    },
}

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

Unknown system error.

Show fields

Fields of Unknown

errno: Errno

Unknown nix::errno::Errno returned by the system call.

Trait Implementations

impl Debug for SystemError[src]

impl Display for SystemError[src]

impl Error for SystemError[src]

impl From<Errno> for SystemError[src]

impl From<Error> for SystemError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.