#[non_exhaustive]pub enum DevicePolicy {
RequireAccelerator,
Any,
}Expand description
Runtime placement requirement checked after model loading.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RequireAccelerator
Reject a model with no accelerator-backed tensors.
Any
Permit any placement selected by llama.cpp.
Trait Implementations§
Source§impl Clone for DevicePolicy
impl Clone for DevicePolicy
Source§fn clone(&self) -> DevicePolicy
fn clone(&self) -> DevicePolicy
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 DevicePolicy
Source§impl Debug for DevicePolicy
impl Debug for DevicePolicy
Source§impl Default for DevicePolicy
impl Default for DevicePolicy
Source§fn default() -> DevicePolicy
fn default() -> DevicePolicy
Returns the “default value” for a type. Read more
impl Eq for DevicePolicy
Source§impl PartialEq for DevicePolicy
impl PartialEq for DevicePolicy
impl StructuralPartialEq for DevicePolicy
Auto Trait Implementations§
impl Freeze for DevicePolicy
impl RefUnwindSafe for DevicePolicy
impl Send for DevicePolicy
impl Sync for DevicePolicy
impl Unpin for DevicePolicy
impl UnsafeUnpin for DevicePolicy
impl UnwindSafe for DevicePolicy
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