pub struct ContextConfig {
pub device: DevicePreference,
pub validation: bool,
}Expand description
How to create a context.
Fields§
§device: DevicePreference§validation: boolRequest the validation layer and capture what it reports.
Off by default because it costs real time per call. Tests turn it on and assert the log is clean, which is what keeps “validation-clean” from depending on someone reading stderr.
Trait Implementations§
Source§impl Clone for ContextConfig
impl Clone for ContextConfig
impl Copy for ContextConfig
Source§impl Debug for ContextConfig
impl Debug for ContextConfig
Auto Trait Implementations§
impl Freeze for ContextConfig
impl RefUnwindSafe for ContextConfig
impl Send for ContextConfig
impl Sync for ContextConfig
impl Unpin for ContextConfig
impl UnsafeUnpin for ContextConfig
impl UnwindSafe for ContextConfig
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