pub struct Options {
pub verbose: bool,
pub threads: Option<usize>,
pub cancellation_token: Option<CancellationToken>,
pub log_stream: Option<MpscSender<LogLine>>,
pub additional_args: Vec<OsString>,
}Expand description
Options for the conversion process.
Some of these are passed directly to the BSPC executable.
Fields
verbose: boolWhether to use verbose logging.
If this is false, then the -noverbose flag will be passed to the
BSPC executable.
threads: Option<usize>The number of threads to use for the conversion. By default,
multi-threading is disabled (equivalent to setting this to 1).
This is passed to the BSPC executable via the -threads flag.
cancellation_token: Option<CancellationToken>A cancellation token that can be used to cancel the conversion
(instead of dropping the future). See the docs on convert for
more information.
log_stream: Option<MpscSender<LogLine>>An optional channel to send log lines to as they get logged.
additional_args: Vec<OsString>Additional command-line arguments to pass to the BSPC executable. These are added at the end, after all other arguments.
Implementations
sourceimpl Options
impl Options
pub fn builder() -> OptionsBuilder
Auto Trait Implementations
impl !RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl !UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more