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§
Sourcefn identity(&self) -> SurfaceIdentity
fn identity(&self) -> SurfaceIdentity
Cache identity for the retained picture.
Sourcefn retained_bytes(&self) -> u64
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".