pub struct QueryService {
pub status: Status,
pub status_since: Option<i64>,
pub pid: Option<i64>,
pub memory_usage: Option<u64>,
pub task_class: Option<String>,
pub last_error: Option<Error>,
pub definition: Service,
}Expand description
Result of querying a service.
Fields§
§status: Status§status_since: Option<i64>§pid: Option<i64>§memory_usage: Option<u64>§task_class: Option<String>§last_error: Option<Error>§definition: ServiceImplementations§
Source§impl QueryService
impl QueryService
pub fn default_of(definition: Service) -> Self
Trait Implementations§
Source§impl Clone for QueryService
impl Clone for QueryService
Source§fn clone(&self) -> QueryService
fn clone(&self) -> QueryService
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 QueryService
impl Debug for QueryService
Source§impl<'de> Deserialize<'de> for QueryService
impl<'de> Deserialize<'de> for QueryService
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 QueryService
impl RefUnwindSafe for QueryService
impl Send for QueryService
impl Sync for QueryService
impl Unpin for QueryService
impl UnsafeUnpin for QueryService
impl UnwindSafe for QueryService
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