pub struct DecoderOptions {
pub use_threads: bool,
pub color_mode: ColorMode,
}Expand description
An options struct for Decoder
For usage, see Decoder::new_with_options
Fields§
§use_threads: boolIf true, use multi-threaded decoding. Enabled by default
color_mode: ColorModeOutput colorspace. ColorMode::Rgba by default. Affects Frame output
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DecoderOptions
impl RefUnwindSafe for DecoderOptions
impl Send for DecoderOptions
impl Sync for DecoderOptions
impl Unpin for DecoderOptions
impl UnwindSafe for DecoderOptions
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