pub enum BufferKind {
Dmabuf(DmabufFormat),
Shm {
format: u32,
},
}Expand description
Where a buffer’s pixels live.
Variants§
Dmabuf(DmabufFormat)
A dma-buf with this format; attach it with zwp_linux_dmabuf_v1.
Shm
Shared memory in wl_shm format format (argb8888 = 0,
xrgb8888 = 1, or a fourcc); attach it with wl_shm. Used when the
service has no GPU.
Trait Implementations§
Source§impl Clone for BufferKind
impl Clone for BufferKind
impl Copy for BufferKind
Source§impl Debug for BufferKind
impl Debug for BufferKind
Source§impl<'de> Deserialize<'de> for BufferKind
impl<'de> Deserialize<'de> for BufferKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BufferKind
Source§impl PartialEq for BufferKind
impl PartialEq for BufferKind
Source§impl Serialize for BufferKind
impl Serialize for BufferKind
impl StructuralPartialEq for BufferKind
Auto Trait Implementations§
impl Forget for BufferKind
impl Freeze for BufferKind
impl Move for BufferKind
impl RefUnwindSafe for BufferKind
impl Send for BufferKind
impl Sync for BufferKind
impl Unpin for BufferKind
impl UnsafeUnpin for BufferKind
impl UnwindSafe for BufferKind
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more