pub struct DmabufFormat {
pub fourcc: u32,
pub modifier: u64,
}Expand description
A buffer format both the compositor and the app’s surface take: a DRM fourcc and modifier, as the compositor advertised them to the app.
Fields§
§fourcc: u32§modifier: u64Trait Implementations§
Source§impl Clone for DmabufFormat
impl Clone for DmabufFormat
impl Copy for DmabufFormat
Source§impl Debug for DmabufFormat
impl Debug for DmabufFormat
Source§impl<'de> Deserialize<'de> for DmabufFormat
impl<'de> Deserialize<'de> for DmabufFormat
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 DmabufFormat
Source§impl PartialEq for DmabufFormat
impl PartialEq for DmabufFormat
Source§impl Serialize for DmabufFormat
impl Serialize for DmabufFormat
impl StructuralPartialEq for DmabufFormat
Auto Trait Implementations§
impl Forget for DmabufFormat
impl Freeze for DmabufFormat
impl Move for DmabufFormat
impl RefUnwindSafe for DmabufFormat
impl Send for DmabufFormat
impl Sync for DmabufFormat
impl Unpin for DmabufFormat
impl UnsafeUnpin for DmabufFormat
impl UnwindSafe for DmabufFormat
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