Skip to main content

NativeSurfaceLease

Trait NativeSurfaceLease 

Source
pub trait NativeSurfaceLease:
    Debug
    + Send
    + Sync
    + 'static {
    // Required methods
    fn identity(&self) -> SurfaceIdentity;
    fn retained_bytes(&self) -> u64;
}
Expand description

Native backing retained until every sampling submission has completed.

Required Methods§

Source

fn identity(&self) -> SurfaceIdentity

Cache identity for the retained picture.

Source

fn retained_bytes(&self) -> u64

Approximate bytes reserved from the native surface budget.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§