pub struct Config {
pub threads: usize,
}Expand description
Configuration for the decoer. For now it’s just number of threads.
You can use std::thread::available_parallelism().map(|v| v.get()).unwrap_or(4).
Fields§
§threads: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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