#[non_exhaustive]pub enum RutabagaErrorKind {
Show 34 variants
AlreadyInUse,
CheckedArithmetic {
field1: (&'static str, usize),
field2: (&'static str, usize),
op: &'static str,
},
CheckedRange {
field1: (&'static str, usize),
field2: (&'static str, usize),
},
ComponentError(i32),
Internal,
Invalid2DInfo,
InvalidCapset,
InvalidCommandBuffer,
InvalidCommandSize(usize),
InvalidComponent,
InvalidContextId,
InvalidCrossDomainChannel,
InvalidCrossDomainItemId,
InvalidCrossDomainItemType,
InvalidCrossDomainState,
InvalidGrallocBackend,
InvalidGrallocDimensions,
InvalidGrallocDrmFormat,
InvalidGrallocGpuType,
InvalidGrallocNumberOfPlanes,
InvalidIovec,
InvalidResourceId,
InvalidRutabagaBuild,
InvalidRutabagaHandle,
InvalidVulkanInfo,
IoError,
MappingFailed(i32),
NixError(Error),
NulError,
SnapshotError,
SpecViolation,
TryFromIntError,
Unsupported,
Utf8Error,
}
Expand description
A list specifying general categories of rutabaga_gfx error.
This list is intended to grow over time and it is not recommended to exhaustively match against it.
It is used with the RutabagaError
type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AlreadyInUse
Indicates Rutabaga
was already initialized since only one Rutabaga instance per process
is allowed.
CheckedArithmetic
Checked Arithmetic error
CheckedRange
Checked Range error
ComponentError(i32)
An internal Rutabaga component error was returned.
Internal
Internal error. The caller is not supposed to handle this error.
Invalid2DInfo
Invalid 2D info
InvalidCapset
Invalid Capset
InvalidCommandBuffer
A command buffer with insufficient space was submitted.
InvalidCommandSize(usize)
A command size was submitted that was invalid.
InvalidComponent
Invalid RutabagaComponent
InvalidContextId
Invalid Context ID
InvalidCrossDomainChannel
Invalid cross domain channel
InvalidCrossDomainItemId
Invalid cross domain item ID
InvalidCrossDomainItemType
Invalid cross domain item type
InvalidCrossDomainState
Invalid cross domain state
InvalidGrallocBackend
Invalid gralloc backend.
InvalidGrallocDimensions
Invalid gralloc dimensions.
InvalidGrallocDrmFormat
Invalid gralloc DRM format.
InvalidGrallocGpuType
Invalid GPU type.
InvalidGrallocNumberOfPlanes
Invalid number of YUV planes.
InvalidIovec
The indicated region of guest memory is invalid.
InvalidResourceId
Invalid Resource ID.
InvalidRutabagaBuild
Indicates an error in the RutabagaBuilder.
InvalidRutabagaHandle
An error with the RutabagaHandle
InvalidVulkanInfo
Invalid Vulkan info
IoError
An input/output error occured.
MappingFailed(i32)
The mapping failed.
NixError(Error)
Nix crate error.
NulError
SnapshotError
An error with a snapshot.
SpecViolation
Violation of the Rutabaga spec occured.
TryFromIntError
An attempted integer conversion failed.
Unsupported
The command is unsupported.
Utf8Error
Utf8 error.
Trait Implementations§
source§impl Clone for RutabagaErrorKind
impl Clone for RutabagaErrorKind
source§fn clone(&self) -> RutabagaErrorKind
fn clone(&self) -> RutabagaErrorKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RutabagaErrorKind
impl Debug for RutabagaErrorKind
source§impl Display for RutabagaErrorKind
impl Display for RutabagaErrorKind
source§impl Error for RutabagaErrorKind
impl Error for RutabagaErrorKind
1.30.0 · 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<RutabagaErrorKind> for RutabagaError
impl From<RutabagaErrorKind> for RutabagaError
source§fn from(kind: RutabagaErrorKind) -> Self
fn from(kind: RutabagaErrorKind) -> Self
Auto Trait Implementations§
impl Freeze for RutabagaErrorKind
impl RefUnwindSafe for RutabagaErrorKind
impl Send for RutabagaErrorKind
impl Sync for RutabagaErrorKind
impl Unpin for RutabagaErrorKind
impl UnwindSafe for RutabagaErrorKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)