pub enum BackendRequest {
Auto,
Cpu,
Metal,
Cuda,
}Expand description
Caller preference for backend selection.
Variants§
Auto
Let the codec choose the best available backend.
Cpu
Force the portable CPU backend.
Metal
Force Metal and fail if unavailable.
Cuda
Force CUDA and fail if unavailable.
Implementations§
Source§impl BackendRequest
impl BackendRequest
Sourcepub const ACCELERATED: BackendRequest = Self::Auto
pub const ACCELERATED: BackendRequest = Self::Auto
Adaptive accelerated route: let the codec choose CPU and device stages for benchmark-approved workload shapes.
Sourcepub const CPU_ONLY: BackendRequest = Self::Cpu
pub const CPU_ONLY: BackendRequest = Self::Cpu
Explicit portable CPU route.
Sourcepub const STRICT_METAL: BackendRequest = Self::Metal
pub const STRICT_METAL: BackendRequest = Self::Metal
Strict Metal route; fail when Metal is unavailable or unsupported.
Sourcepub const STRICT_CUDA: BackendRequest = Self::Cuda
pub const STRICT_CUDA: BackendRequest = Self::Cuda
Strict CUDA route; fail when CUDA is unavailable or unsupported.
Trait Implementations§
Source§impl Clone for BackendRequest
impl Clone for BackendRequest
Source§fn clone(&self) -> BackendRequest
fn clone(&self) -> BackendRequest
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 BackendRequest
Source§impl Debug for BackendRequest
impl Debug for BackendRequest
Source§impl Default for BackendRequest
impl Default for BackendRequest
Source§fn default() -> BackendRequest
fn default() -> BackendRequest
Returns the “default value” for a type. Read more
impl Eq for BackendRequest
Source§impl Hash for BackendRequest
impl Hash for BackendRequest
Source§impl PartialEq for BackendRequest
impl PartialEq for BackendRequest
Source§fn eq(&self, other: &BackendRequest) -> bool
fn eq(&self, other: &BackendRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackendRequest
Auto Trait Implementations§
impl Freeze for BackendRequest
impl RefUnwindSafe for BackendRequest
impl Send for BackendRequest
impl Sync for BackendRequest
impl Unpin for BackendRequest
impl UnsafeUnpin for BackendRequest
impl UnwindSafe for BackendRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more