#[repr(u32)]pub enum Error {
AlreadyUsed = 0,
PlaneIdx = 1,
PlaneSet = 2,
Incomplete = 3,
InvalidFormat = 4,
InvalidDimensions = 5,
OutOfBounds = 6,
InvalidWlBuffer = 7,
}
Variants§
AlreadyUsed = 0
the dmabuf_batch object has already been used to create a wl_buffer,
PlaneIdx = 1
plane index out of bounds,
PlaneSet = 2
the plane index was already set,
Incomplete = 3
missing or too many planes to create a buffer,
InvalidFormat = 4
format not supported,
InvalidDimensions = 5
invalid width or height,
OutOfBounds = 6
offset + stride * height goes out of dmabuf bounds,
InvalidWlBuffer = 7
invalid wl_buffer resulted from importing dmabufs via, the create_immed request on given buffer_params,
Implementations§
Trait Implementations§
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)