pub struct RenderBackend {
pub name: &'static str,
pub priority: i32,
pub renderer: fn() -> Box<dyn Renderer>,
}Expand description
One render backend: its name, its rank under auto, and how to make its
renderer.
Fields§
§name: &'static strThe name an app’s configuration selects it by.
priority: i32Trial order when the configuration names no backend: higher first.
renderer: fn() -> Box<dyn Renderer>A renderer bound to nothing yet. Construction does no work; binding
to a window or an offscreen image happens in Renderer::attach,
and a failure there is what lets a launch try the next backend.
Trait Implementations§
Source§impl BackendEntry for RenderBackend
impl BackendEntry for RenderBackend
Source§impl Clone for RenderBackend
impl Clone for RenderBackend
Source§fn clone(&self) -> RenderBackend
fn clone(&self) -> RenderBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderBackend
impl Debug for RenderBackend
impl Copy for RenderBackend
Auto Trait Implementations§
impl Freeze for RenderBackend
impl RefUnwindSafe for RenderBackend
impl Send for RenderBackend
impl Sync for RenderBackend
impl Unpin for RenderBackend
impl UnsafeUnpin for RenderBackend
impl UnwindSafe for RenderBackend
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.