pub struct DeviceSettings {
pub local_enabled: Option<bool>,
pub remote_enabled: Option<bool>,
pub cache_dir: Option<PathBuf>,
pub local_qtype: Option<QType>,
}Expand description
This device’s own settings, never synced.
Fields§
§local_enabled: Option<bool>The local slot’s switch; None is auto (off without AVX2).
remote_enabled: Option<bool>The remote slot’s switch; None is auto (on).
cache_dir: Option<PathBuf>Where the local model’s files are cached, when not the bridge’s default.
local_qtype: Option<QType>How the local model’s weights are held; None is QType::default.
Absent from bridges before 2.4.
Implementations§
Trait Implementations§
Source§impl Clone for DeviceSettings
impl Clone for DeviceSettings
Source§impl Debug for DeviceSettings
impl Debug for DeviceSettings
Source§impl Default for DeviceSettings
impl Default for DeviceSettings
Source§impl<'de> Deserialize<'de> for DeviceSettings
impl<'de> Deserialize<'de> for DeviceSettings
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 DeviceSettings
Source§impl PartialEq for DeviceSettings
impl PartialEq for DeviceSettings
Source§impl Serialize for DeviceSettings
impl Serialize for DeviceSettings
impl StructuralPartialEq for DeviceSettings
Auto Trait Implementations§
impl Freeze for DeviceSettings
impl RefUnwindSafe for DeviceSettings
impl Send for DeviceSettings
impl Sync for DeviceSettings
impl Unpin for DeviceSettings
impl UnsafeUnpin for DeviceSettings
impl UnwindSafe for DeviceSettings
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