#[non_exhaustive]pub enum Event {
Created(WlBuffer),
Failed,
}Available on crate feature
linux-dmabuf-unstable-v1 only.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.
Created(WlBuffer)
buffer creation succeeded
This event indicates that the attempted buffer creation was successful. It provides the new wl_buffer referencing the dmabuf(s).
Upon receiving this event, the client should destroy the zwp_linux_buffer_params_v1 object.
Since version 1.
Failed
buffer creation failed
This event indicates that the attempted buffer creation has failed. It usually means that one of the dmabuf constraints has not been fulfilled.
Upon receiving this event, the client should destroy the zwp_linux_buffer_params_v1 object.
Since version 1.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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