pub struct ServiceStatus {
pub name: String,
pub display_name: Option<String>,
pub state: ServiceState,
pub process_id: u32,
pub service_type: u32,
pub controls_accepted: u32,
pub exit_code: u32,
pub service_specific_exit_code: u32,
pub checkpoint: u32,
pub wait_hint_ms: u32,
pub service_flags: u32,
}Expand description
Runtime status for a Windows service.
Fields§
§name: StringService key name.
display_name: Option<String>Optional display name when available.
state: ServiceStateCurrent service state.
process_id: u32Process ID owning the service instance (0 for some stopped/shared services).
service_type: u32Service type flags.
controls_accepted: u32Accepted control flags.
exit_code: u32Win32 exit code.
service_specific_exit_code: u32Service-specific exit code.
checkpoint: u32Checkpoint value for pending states.
wait_hint_ms: u32Wait hint in milliseconds.
service_flags: u32Service flags.
Trait Implementations§
Source§impl Clone for ServiceStatus
impl Clone for ServiceStatus
Source§fn clone(&self) -> ServiceStatus
fn clone(&self) -> ServiceStatus
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 moreAuto Trait Implementations§
impl Freeze for ServiceStatus
impl RefUnwindSafe for ServiceStatus
impl Send for ServiceStatus
impl Sync for ServiceStatus
impl Unpin for ServiceStatus
impl UnsafeUnpin for ServiceStatus
impl UnwindSafe for ServiceStatus
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