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() -> InstanceDescriptor
pub fn from_env_or_default() -> InstanceDescriptor
Choose instance options entirely from environment variables.
This is equivalent to calling from_env
on every field.
sourcepub fn with_env(self) -> InstanceDescriptor
pub fn with_env(self) -> InstanceDescriptor
Takes the given options, modifies them based on the environment variables, and returns the result.
This is equivalent to calling with_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
source§impl Default for InstanceDescriptor
impl Default for InstanceDescriptor
source§fn default() -> InstanceDescriptor
fn default() -> InstanceDescriptor
Returns the “default value” for a type. Read more
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
)