pub struct EncodeOpts {
pub level: Option<i32>,
pub threads: Option<usize>,
pub governor: Option<Arc<Governor>>,
}Fields§
§level: Option<i32>Format-relative compression level. None means the format’s default.
threads: Option<usize>Worker hint. The governor has final say; this is only a request.
governor: Option<Arc<Governor>>The shared worker/memory budget. None means single-threaded — a codec
parallelises only if handed a governor, never from an ambient global.
Trait Implementations§
Source§impl Clone for EncodeOpts
impl Clone for EncodeOpts
Source§fn clone(&self) -> EncodeOpts
fn clone(&self) -> EncodeOpts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncodeOpts
impl Debug for EncodeOpts
Source§impl Default for EncodeOpts
impl Default for EncodeOpts
Source§fn default() -> EncodeOpts
fn default() -> EncodeOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EncodeOpts
impl RefUnwindSafe for EncodeOpts
impl Send for EncodeOpts
impl Sync for EncodeOpts
impl Unpin for EncodeOpts
impl UnsafeUnpin for EncodeOpts
impl UnwindSafe for EncodeOpts
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