#[non_exhaustive]pub struct BackendDescriptor {
pub kind: BackendKind,
}Expand description
Concrete backend a particular engine instance was loaded with.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: BackendKindBackend kind the engine was loaded against.
Implementations§
Source§impl BackendDescriptor
impl BackendDescriptor
Sourcepub fn new(kind: BackendKind) -> Self
pub fn new(kind: BackendKind) -> Self
Build a descriptor for an arbitrary backend kind.
Trait Implementations§
Source§impl Clone for BackendDescriptor
impl Clone for BackendDescriptor
Source§fn clone(&self) -> BackendDescriptor
fn clone(&self) -> BackendDescriptor
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 moreimpl Copy for BackendDescriptor
Source§impl Debug for BackendDescriptor
impl Debug for BackendDescriptor
impl Eq for BackendDescriptor
Source§impl PartialEq for BackendDescriptor
impl PartialEq for BackendDescriptor
impl StructuralPartialEq for BackendDescriptor
Auto Trait Implementations§
impl Freeze for BackendDescriptor
impl RefUnwindSafe for BackendDescriptor
impl Send for BackendDescriptor
impl Sync for BackendDescriptor
impl Unpin for BackendDescriptor
impl UnsafeUnpin for BackendDescriptor
impl UnwindSafe for BackendDescriptor
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