#[repr(C)]pub struct AVDRMObjectDescriptor {
pub fd: c_int,
pub size: usize,
pub format_modifier: u64,
}展开描述
DRM object descriptor.
Describes a single DRM object, addressing it as a PRIME file descriptor.
Fields§
§fd: c_intDRM PRIME fd for the object.
size: usizeTotal size of the object.
(This includes any parts not which do not contain image data.)
format_modifier: u64Format modifier applied to the object (DRM_FORMAT_MOD_*).
If the format modifier is unknown then this should be set to DRM_FORMAT_MOD_INVALID.
trait 实现§
源代码§impl Clone for AVDRMObjectDescriptor
impl Clone for AVDRMObjectDescriptor
源代码§fn clone(&self) -> AVDRMObjectDescriptor
fn clone(&self) -> AVDRMObjectDescriptor
Returns a duplicate of the value. 阅读更多
1.0.0 · 源代码§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source 执行拷贝赋值。 阅读更多源代码§impl Debug for AVDRMObjectDescriptor
impl Debug for AVDRMObjectDescriptor
源代码§impl PartialEq for AVDRMObjectDescriptor
impl PartialEq for AVDRMObjectDescriptor
impl Copy for AVDRMObjectDescriptor
impl Eq for AVDRMObjectDescriptor
impl StructuralPartialEq for AVDRMObjectDescriptor
自动 trait 实现§
impl Freeze for AVDRMObjectDescriptor
impl RefUnwindSafe for AVDRMObjectDescriptor
impl Send for AVDRMObjectDescriptor
impl Sync for AVDRMObjectDescriptor
impl Unpin for AVDRMObjectDescriptor
impl UnsafeUnpin for AVDRMObjectDescriptor
impl UnwindSafe for AVDRMObjectDescriptor
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
从拥有的值可变地借用。 阅读更多