pub struct InstanceDescriptor {
pub backends: Backends,
pub flags: InstanceFlags,
pub backend_options: BackendOptions,
}
Expand description
Options for creating an instance.
Fields§
§backends: Backends
Which Backends
to enable.
flags: InstanceFlags
Flags to tune the behavior of the instance.
backend_options: BackendOptions
Options the control the behavior of various backends.
Implementations§
source§impl InstanceDescriptor
impl InstanceDescriptor
sourcepub fn from_env_or_default() -> Self
pub fn from_env_or_default() -> Self
Choose instance options entirely from environment variables.
This is equivalent to calling from_env
on every field.
Trait Implementations§
source§impl Clone for InstanceDescriptor
impl Clone for InstanceDescriptor
source§fn clone(&self) -> InstanceDescriptor
fn clone(&self) -> InstanceDescriptor
Returns a copy of the value. Read more
1.0.0 · 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 InstanceDescriptor
impl Debug for InstanceDescriptor
Auto Trait Implementations§
impl Freeze for InstanceDescriptor
impl RefUnwindSafe for InstanceDescriptor
impl Send for InstanceDescriptor
impl Sync for InstanceDescriptor
impl Unpin for InstanceDescriptor
impl UnwindSafe for InstanceDescriptor
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)