Enum wayland_client::protocol::wl_shm::Error
source · #[non_exhaustive]#[repr(u32)]pub enum Error {
InvalidFormat = 0,
InvalidStride = 1,
InvalidFd = 2,
}
Expand description
wl_shm error values
These errors can be emitted in response to wl_shm requests.
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.
InvalidFormat = 0
buffer format is not known
InvalidStride = 1
invalid size or stride during pool or buffer creation
InvalidFd = 2
mmapping the file descriptor failed
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