pub trait IPlatformGraphicsReadyStateFeature: Send + Sync {
// Required methods
fn is_ready(&self) -> bool;
fn uses_contexts(&self) -> bool;
}Expand description
Reports whether the platform graphics are ready to be used.
Asked by the thread that renders, at every frame, about a state the
thread of the platform changes: shared by the two as the platform
graphics are (Send + Sync). The platform graphics announce the feature
through their optional features as an Arc<dyn IPlatformGraphicsReadyStateFeature>
(try_get_shared of the optional features).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".