#[non_exhaustive]pub struct ContextOptions<'a> {
pub capture: Option<&'a CaptureIo>,
pub test: bool,
}
Available on crate feature
cli
only.Expand description
Options for building context.
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.capture: Option<&'a CaptureIo>
If we need to capture I/O this is set to the capture instance you should be using to do so.
test: bool
If we’re running in a test context.
Auto Trait Implementations§
impl<'a> Freeze for ContextOptions<'a>
impl<'a> !RefUnwindSafe for ContextOptions<'a>
impl<'a> Send for ContextOptions<'a>
impl<'a> Sync for ContextOptions<'a>
impl<'a> Unpin for ContextOptions<'a>
impl<'a> !UnwindSafe for ContextOptions<'a>
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