pub enum BackendPolicy {
PlatformDefault,
Require(BackendId),
Prefer(Vec<BackendId>),
}Expand description
Policy used to select which compiled backend may satisfy an operation.
Variants§
PlatformDefault
Use the platform’s preferred native backend without unrelated fallback.
Require(BackendId)
Require exactly the specified backend.
Prefer(Vec<BackendId>)
Try the listed backends in order and retain each typed failure.
Trait Implementations§
Source§impl Clone for BackendPolicy
impl Clone for BackendPolicy
Source§fn clone(&self) -> BackendPolicy
fn clone(&self) -> BackendPolicy
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 BackendPolicy
impl Debug for BackendPolicy
Source§impl Default for BackendPolicy
impl Default for BackendPolicy
Source§fn default() -> BackendPolicy
fn default() -> BackendPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BackendPolicy
impl<'de> Deserialize<'de> for BackendPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BackendPolicy
Source§impl PartialEq for BackendPolicy
impl PartialEq for BackendPolicy
Source§impl Serialize for BackendPolicy
impl Serialize for BackendPolicy
impl StructuralPartialEq for BackendPolicy
Auto Trait Implementations§
impl Freeze for BackendPolicy
impl RefUnwindSafe for BackendPolicy
impl Send for BackendPolicy
impl Sync for BackendPolicy
impl Unpin for BackendPolicy
impl UnsafeUnpin for BackendPolicy
impl UnwindSafe for BackendPolicy
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