struct Configuration {
rt_multi_thread_available: bool,
default_flavor: RuntimeFlavor,
flavor: Option<RuntimeFlavor>,
worker_threads: Option<(usize, Span)>,
start_paused: Option<(bool, Span)>,
is_test: bool,
crate_name: Option<Path>,
unhandled_panic: Option<(UnhandledPanic, Span)>,
}
Fields§
§rt_multi_thread_available: bool
§default_flavor: RuntimeFlavor
§flavor: Option<RuntimeFlavor>
§worker_threads: Option<(usize, Span)>
§start_paused: Option<(bool, Span)>
§is_test: bool
§crate_name: Option<Path>
§unhandled_panic: Option<(UnhandledPanic, Span)>
Implementations§
source§impl Configuration
impl Configuration
fn new(is_test: bool, rt_multi_thread: bool) -> Self
fn set_flavor(&mut self, runtime: Lit, span: Span) -> Result<(), Error>
fn set_worker_threads( &mut self, worker_threads: Lit, span: Span, ) -> Result<(), Error>
fn set_start_paused( &mut self, start_paused: Lit, span: Span, ) -> Result<(), Error>
fn set_crate_name(&mut self, name: Lit, span: Span) -> Result<(), Error>
fn set_unhandled_panic( &mut self, unhandled_panic: Lit, span: Span, ) -> Result<(), Error>
fn macro_name(&self) -> &'static str
fn build(&self) -> Result<FinalConfig, Error>
Auto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl !Send for Configuration
impl !Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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