pub struct ExternalNativeSurface {
    pub used_this_frame: bool,
    pub native_surface_id: NativeSurfaceId,
    pub image_dependencies: [ImageDependency; 3],
}Expand description
Information about a native compositor surface cached between frames.
Fields§
§used_this_frame: boolIf true, the surface was used this frame. Used for a simple form of GC to remove old surfaces.
native_surface_id: NativeSurfaceIdThe native compositor surface handle
image_dependencies: [ImageDependency; 3]List of image keys, and current image generations, that are drawn in this surface. The image generations are used to check if the compositor surface is dirty and needs to be updated.
Auto Trait Implementations§
impl Freeze for ExternalNativeSurface
impl RefUnwindSafe for ExternalNativeSurface
impl Send for ExternalNativeSurface
impl Sync for ExternalNativeSurface
impl Unpin for ExternalNativeSurface
impl UnwindSafe for ExternalNativeSurface
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
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more