pub enum GpuCommandDecodeError {
InvalidType(u32),
IO(Error),
}Expand description
An error indicating something went wrong decoding a GpuCommand. These correspond to
VIRTIO_GPU_CMD_*.
Variants§
Trait Implementations§
Source§impl Debug for GpuCommandDecodeError
impl Debug for GpuCommandDecodeError
Source§impl Display for GpuCommandDecodeError
impl Display for GpuCommandDecodeError
Source§impl Error for GpuCommandDecodeError
impl Error for GpuCommandDecodeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for GpuCommandDecodeError
impl From<Error> for GpuCommandDecodeError
Source§fn from(e: Error) -> GpuCommandDecodeError
fn from(e: Error) -> GpuCommandDecodeError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GpuCommandDecodeError
impl !RefUnwindSafe for GpuCommandDecodeError
impl Send for GpuCommandDecodeError
impl Sync for GpuCommandDecodeError
impl Unpin for GpuCommandDecodeError
impl !UnwindSafe for GpuCommandDecodeError
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
Mutably borrows from an owned value. Read more