Enum wayland_protocols::unstable::linux_dmabuf::v1::client::zwp_linux_buffer_params_v1::Error
source · #[non_exhaustive]#[repr(u32)]pub enum Error {
AlreadyUsed = 0,
PlaneIdx = 1,
PlaneSet = 2,
Incomplete = 3,
InvalidFormat = 4,
InvalidDimensions = 5,
OutOfBounds = 6,
InvalidWlBuffer = 7,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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§
source§impl PartialEq for Error
impl PartialEq for Error
impl Copy for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
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