WinWinService

Struct WinWinService 

Source
#[non_exhaustive]
pub struct WinWinService {
Show 20 fields pub cmd_line: Option<String>, pub hosting_process: Option<Box<ProcessEntity>>, pub labels: Option<Vec<String>>, pub load_order_group: Option<String>, pub name: Option<String>, pub service_category: Option<String>, pub service_category_id: Option<i64>, pub service_dependencies: Option<Vec<String>>, pub service_dll_file: Option<Box<File>>, pub service_error_control: Option<String>, pub service_error_control_id: Option<i64>, pub service_file: Option<Box<File>>, pub service_start_name: Option<String>, pub service_start_type: Option<String>, pub service_start_type_id: Option<i64>, pub service_type: Option<String>, pub service_type_id: Option<i64>, pub tags: Option<Vec<KeyValueObject>>, pub uid: Option<String>, pub version: Option<String>,
}
Expand description

Windows Service

The Windows Service object describes a Windows service.

[] Category: | Name: win_service

Constraints:

  • at_least_one: [name,uid]

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§cmd_line: Option<String>

Command Line

The full command line used to launch the service.

recommended

§hosting_process: Option<Box<ProcessEntity>>

Hosting Process

The process that is hosting this service.

optional

§labels: Option<Vec<String>>

Labels

The list of labels associated with the service.

optional

§load_order_group: Option<String>

Load Order Group

The name of the load ordering group of which this service is a member.

recommended

§name: Option<String>

Name

The unique name of the service.

required

§service_category: Option<String>

Service Category

The service category, normalized to the caption of the service_category_id value. In the case of ‘Other’, it is defined by the event source.

optional

§service_category_id: Option<i64>

Service Category ID

The normalized identifier of the service category.

recommended

§service_dependencies: Option<Vec<String>>

Service Dependencies

The names of other services upon which this service has a dependency.

recommended

§service_dll_file: Option<Box<File>>

Service DLL

For a shared user mode service (service_type_id is 4) this is the DLL that gets loaded by the generic service host process (e.g. svchost.exe) to implement the service.

optional

§service_error_control: Option<String>

Service Error Control

The service error control, normalized to the caption of the service_error_control_id value. In the case of ‘Other’, it is defined by the event source.

optional

§service_error_control_id: Option<i64>

Service Error Control ID

The normalized identifier of the service error control.

recommended

§service_file: Option<Box<File>>

Service File

For a user mode service (service_type_id 3 or 4) this is the executable program that the SCM launches as the service process.
For a kernel mode driver (service_type_id 1 or 2) this is the driver file loaded into the kernel at the request of the SCM.

recommended

§service_start_name: Option<String>

Service Start Name

For a user mode service, this attribute represents the name of the account under which the service is run. For a kernel mode driver, this attribute represents the object name used to load the driver.

recommended

§service_start_type: Option<String>

Service Start Type

The service start type, normalized to the caption of the service_start_type_id value. In the case of ‘Other’, it is defined by the event source.

optional

§service_start_type_id: Option<i64>

Service Start Type ID

The normalized identifier of the service start type.

recommended

§service_type: Option<String>

Service Type

The service type, normalized to the caption of the service_type_id value. In the case of ‘Other’, it is defined by the event source.

optional

§service_type_id: Option<i64>

Service Type ID

The normalized identifier of the service type.

recommended

§tags: Option<Vec<KeyValueObject>>

Tags

The list of tags; {key:value} pairs associated to the service.

optional

§uid: Option<String>

Unique ID

The unique identifier of the service.

recommended

§version: Option<String>

Version

The version of the service.

recommended

Trait Implementations§

Source§

impl Clone for WinWinService

Source§

fn clone(&self) -> WinWinService

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WinWinService

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for WinWinService

Source§

fn default() -> WinWinService

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for WinWinService

Source§

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 WinWinService

Source§

fn eq(&self, other: &WinWinService) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for WinWinService

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for WinWinService

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,