pub struct ServerState {Show 15 fields
pub backend: String,
pub model_id: String,
pub endpoint: String,
pub port: u16,
pub owned_by_us: bool,
pub pid: Option<u32>,
pub runtime_model_id: Option<String>,
pub context: Option<u32>,
pub integrity: Option<String>,
pub local_manifest_digest: Option<String>,
pub model_path: Option<String>,
pub process_executable: Option<String>,
pub process_started_at: Option<String>,
pub auth_token: Option<String>,
pub cache: Option<CacheProfile>,
}Fields§
§backend: String§model_id: String§endpoint: String§port: u16§owned_by_us: bool§pid: Option<u32>§runtime_model_id: Option<String>§context: Option<u32>§integrity: Option<String>§local_manifest_digest: Option<String>§model_path: Option<String>§process_executable: Option<String>§process_started_at: Option<String>§auth_token: Option<String>§cache: Option<CacheProfile>Implementations§
Source§impl ServerState
impl ServerState
pub fn validate(&self) -> Result<(), StateError>
Trait Implementations§
Source§impl Clone for ServerState
impl Clone for ServerState
Source§impl Debug for ServerState
impl Debug for ServerState
Source§impl<'de> Deserialize<'de> for ServerState
impl<'de> Deserialize<'de> for ServerState
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
Source§impl PartialEq for ServerState
impl PartialEq for ServerState
Source§impl Serialize for ServerState
impl Serialize for ServerState
impl StructuralPartialEq for ServerState
Auto Trait Implementations§
impl Forget for ServerState
impl Freeze for ServerState
impl RefUnwindSafe for ServerState
impl Send for ServerState
impl Sync for ServerState
impl Unpin for ServerState
impl UnsafeUnpin for ServerState
impl UnwindSafe for ServerState
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