#[non_exhaustive]pub struct Acquisition {
pub layer: LayerId,
pub buffer: AcquiredBuffer,
pub release_fence: Option<SyncFence>,
}Expand description
One buffer held on behalf of a layer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.layer: LayerIdWhich layer acquired it.
buffer: AcquiredBufferThe buffer itself.
release_fence: Option<SyncFence>The OUT_FENCE of the commit that displaced it, stamped on when it
leaves the screen and handed back with the buffer.
None when the CRTC has no OUT_FENCE_PTR or no source opted in.
Implementations§
Source§impl Acquisition
impl Acquisition
Sourcepub const fn new(layer: LayerId, buffer: AcquiredBuffer) -> Self
pub const fn new(layer: LayerId, buffer: AcquiredBuffer) -> Self
Hold buffer on behalf of layer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Acquisition
impl RefUnwindSafe for Acquisition
impl Send for Acquisition
impl Sync for Acquisition
impl Unpin for Acquisition
impl UnsafeUnpin for Acquisition
impl UnwindSafe for Acquisition
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