pub enum DecodePolicy {
Auto,
SpecificGpu(u32),
FastestGpu,
}Expand description
How the decode pump selects its GPU — the decode-side counterpart to
EncodePolicy. A sum type so the modes stay mutually exclusive: you can’t
accidentally ask for “a specific GPU and the fastest”.
Variants§
Auto
Follow the encode policy: the first device of the selected family/set, round-robin for per-rung pumps. The default.
SpecificGpu(u32)
Pin decode to this physical GPU index (e.g. decode on an iGPU while the dGPUs encode).
FastestGpu
Benchmark every decode-capable GPU on a short prefix of the input before
the job and pin the pump to the fastest. The engine resolves this to
SpecificGpu once the winner is known; a no-op on single-GPU hosts.
Implementations§
Source§impl DecodePolicy
impl DecodePolicy
Trait Implementations§
Source§impl Clone for DecodePolicy
impl Clone for DecodePolicy
Source§fn clone(&self) -> DecodePolicy
fn clone(&self) -> DecodePolicy
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 moreimpl Copy for DecodePolicy
Source§impl Debug for DecodePolicy
impl Debug for DecodePolicy
Source§impl Default for DecodePolicy
impl Default for DecodePolicy
Source§fn default() -> DecodePolicy
fn default() -> DecodePolicy
Returns the “default value” for a type. Read more
impl Eq for DecodePolicy
Source§impl FromStr for DecodePolicy
impl FromStr for DecodePolicy
Source§impl PartialEq for DecodePolicy
impl PartialEq for DecodePolicy
Source§fn eq(&self, other: &DecodePolicy) -> bool
fn eq(&self, other: &DecodePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DecodePolicy
Auto Trait Implementations§
impl Freeze for DecodePolicy
impl RefUnwindSafe for DecodePolicy
impl Send for DecodePolicy
impl Sync for DecodePolicy
impl Unpin for DecodePolicy
impl UnsafeUnpin for DecodePolicy
impl UnwindSafe for DecodePolicy
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