Struct bspc::OptionsBuilder

source ·
pub struct OptionsBuilder { /* private fields */ }
Expand description

Builder for Options.

Implementations

Whether to use verbose logging.

If this is false, then the -noverbose flag will be passed to the BSPC executable.

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.

A cancellation token that can be used to cancel the conversion (instead of dropping the future). See the docs on convert for more information.

An optional channel to send log lines to as they get logged.

Adds additional command-line arguments to pass to the BSPC executable. These are added at the end, after all other arguments.

Adds an additional command-line argument to pass to the BSPC executable. This is added at the end, after all other arguments.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.