Struct wayland_protocols::unstable::linux_dmabuf::v1::server::zwp_linux_dmabuf_v1::ZwpLinuxDmabufV1
source · [−]pub struct ZwpLinuxDmabufV1(_);
Implementations
sourceimpl ZwpLinuxDmabufV1
impl ZwpLinuxDmabufV1
sourcepub fn format(&self, format: u32)
pub fn format(&self, format: u32)
supported buffer format
This event advertises one buffer format that the server supports. All the supported formats are advertised once when the client binds to this interface. A roundtrip after binding guarantees that the client has received all supported formats.
For the definition of the format codes, see the zwp_linux_buffer_params_v1::create request.
Warning: the ‘format’ event is likely to be deprecated and replaced with the ‘modifier’ event introduced in zwp_linux_dmabuf_v1 version 3, described below. Please refrain from using the information received from this event.
sourcepub fn modifier(&self, format: u32, modifier_hi: u32, modifier_lo: u32)
pub fn modifier(&self, format: u32, modifier_hi: u32, modifier_lo: u32)
supported buffer format modifier
This event advertises the formats that the server supports, along with the modifiers supported for each format. All the supported modifiers for all the supported formats are advertised once when the client binds to this interface. A roundtrip after binding guarantees that the client has received all supported format-modifier pairs.
For legacy support, DRM_FORMAT_MOD_INVALID (that is, modifier_hi == 0x00ffffff and modifier_lo == 0xffffffff) is allowed in this event. It indicates that the server can support the format with an implicit modifier. When a plane has DRM_FORMAT_MOD_INVALID as its modifier, it is as if no explicit modifier is specified. The effective modifier will be derived from the dmabuf.
A compositor that sends valid modifiers and DRM_FORMAT_MOD_INVALID for a given format supports both explicit modifiers and implicit modifiers.
For the definition of the format and modifier codes, see the zwp_linux_buffer_params_v1::create and zwp_linux_buffer_params_v1::add requests.
Only available since version 3 of the interface.
Trait Implementations
sourceimpl AsRef<Resource<ZwpLinuxDmabufV1>> for ZwpLinuxDmabufV1
impl AsRef<Resource<ZwpLinuxDmabufV1>> for ZwpLinuxDmabufV1
sourceimpl Clone for ZwpLinuxDmabufV1
impl Clone for ZwpLinuxDmabufV1
sourcefn clone(&self) -> ZwpLinuxDmabufV1
fn clone(&self) -> ZwpLinuxDmabufV1
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ZwpLinuxDmabufV1
impl Debug for ZwpLinuxDmabufV1
sourceimpl From<Resource<ZwpLinuxDmabufV1>> for ZwpLinuxDmabufV1
impl From<Resource<ZwpLinuxDmabufV1>> for ZwpLinuxDmabufV1
sourceimpl From<ZwpLinuxDmabufV1> for Resource<ZwpLinuxDmabufV1>
impl From<ZwpLinuxDmabufV1> for Resource<ZwpLinuxDmabufV1>
sourcefn from(value: ZwpLinuxDmabufV1) -> Self
fn from(value: ZwpLinuxDmabufV1) -> Self
Converts to this type from the input type.
sourceimpl Interface for ZwpLinuxDmabufV1
impl Interface for ZwpLinuxDmabufV1
sourcefn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
Pointer to the C representation of this interface
sourceimpl PartialEq<ZwpLinuxDmabufV1> for ZwpLinuxDmabufV1
impl PartialEq<ZwpLinuxDmabufV1> for ZwpLinuxDmabufV1
sourcefn eq(&self, other: &ZwpLinuxDmabufV1) -> bool
fn eq(&self, other: &ZwpLinuxDmabufV1) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for ZwpLinuxDmabufV1
impl StructuralEq for ZwpLinuxDmabufV1
impl StructuralPartialEq for ZwpLinuxDmabufV1
Auto Trait Implementations
impl !RefUnwindSafe for ZwpLinuxDmabufV1
impl Send for ZwpLinuxDmabufV1
impl Sync for ZwpLinuxDmabufV1
impl Unpin for ZwpLinuxDmabufV1
impl !UnwindSafe for ZwpLinuxDmabufV1
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more