pub struct ProcessHandle {
pub model_id: i64,
pub model_name: String,
pub pid: Option<u32>,
pub port: u16,
pub started_at: u64,
}Expand description
Handle to a running server process.
This is an opaque handle that implementations use to track processes. It contains enough information to identify and manage the process.
Fields§
§model_id: i64Database ID of the model being served.
model_name: StringHuman-readable model name.
pid: Option<u32>Process ID (if running on local system).
port: u16Port the server is listening on.
started_at: u64Unix timestamp (seconds) when the server was started.
Implementations§
Trait Implementations§
Source§impl Clone for ProcessHandle
impl Clone for ProcessHandle
Source§fn clone(&self) -> ProcessHandle
fn clone(&self) -> ProcessHandle
Returns a duplicate of the value. Read more
1.0.0 · 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 ProcessHandle
impl Debug for ProcessHandle
Source§impl<'de> Deserialize<'de> for ProcessHandle
impl<'de> Deserialize<'de> for ProcessHandle
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
Auto Trait Implementations§
impl Freeze for ProcessHandle
impl RefUnwindSafe for ProcessHandle
impl Send for ProcessHandle
impl Sync for ProcessHandle
impl Unpin for ProcessHandle
impl UnwindSafe for ProcessHandle
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