pub struct LocalModelLease {
pub lease_id: String,
pub mode: LeaseMode,
pub profile: ModelProfile,
pub pre_load_gpu_probe: GpuProbe,
pub provider_endpoint: Option<String>,
pub provider_pid: Option<u32>,
pub idle_ttl_seconds: u64,
pub unload_strategy: UnloadStrategy,
pub unload_actions: Vec<ProviderUnloadAction>,
}Fields§
§lease_id: String§mode: LeaseMode§profile: ModelProfile§pre_load_gpu_probe: GpuProbe§provider_endpoint: Option<String>§provider_pid: Option<u32>§idle_ttl_seconds: u64§unload_strategy: UnloadStrategy§unload_actions: Vec<ProviderUnloadAction>Trait Implementations§
Source§impl Clone for LocalModelLease
impl Clone for LocalModelLease
Source§fn clone(&self) -> LocalModelLease
fn clone(&self) -> LocalModelLease
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 LocalModelLease
impl Debug for LocalModelLease
impl Eq for LocalModelLease
Source§impl PartialEq for LocalModelLease
impl PartialEq for LocalModelLease
Source§fn eq(&self, other: &LocalModelLease) -> bool
fn eq(&self, other: &LocalModelLease) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LocalModelLease
impl Serialize for LocalModelLease
impl StructuralPartialEq for LocalModelLease
Auto Trait Implementations§
impl Freeze for LocalModelLease
impl RefUnwindSafe for LocalModelLease
impl Send for LocalModelLease
impl Sync for LocalModelLease
impl Unpin for LocalModelLease
impl UnsafeUnpin for LocalModelLease
impl UnwindSafe for LocalModelLease
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