pub struct WindowBackendEntry {
pub name: &'static str,
pub priority: i32,
pub backend: fn() -> Box<dyn WindowBackend>,
}Expand description
One window backend: its name, its rank, and how to make it.
Fields§
§name: &'static strThe name the backend is registered under.
priority: i32Preference: the highest-priority backend is the one a launch runs.
backend: fn() -> Box<dyn WindowBackend>The backend, not yet running. Construction does no work;
WindowBackend::run opens the window.
Trait Implementations§
Source§impl BackendEntry for WindowBackendEntry
impl BackendEntry for WindowBackendEntry
Source§impl Clone for WindowBackendEntry
impl Clone for WindowBackendEntry
Source§fn clone(&self) -> WindowBackendEntry
fn clone(&self) -> WindowBackendEntry
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 WindowBackendEntry
impl Debug for WindowBackendEntry
impl Copy for WindowBackendEntry
Auto Trait Implementations§
impl Freeze for WindowBackendEntry
impl RefUnwindSafe for WindowBackendEntry
impl Send for WindowBackendEntry
impl Sync for WindowBackendEntry
impl Unpin for WindowBackendEntry
impl UnsafeUnpin for WindowBackendEntry
impl UnwindSafe for WindowBackendEntry
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.