Windows

Struct Windows 

Source
pub struct Windows {
Show 41 fields pub processes: Processes, pub threads: Threads, pub drivers: Drivers, pub registry: Registry, pub services: Services, pub desktops: Desktops, pub environment: Environments, pub timezones: TimeZones, pub user_accounts: UserAccounts, pub groups: Groups, pub logon_sessions: LogonSessions, pub network_login_profiles: NetworkLoginProfiles, pub system_accounts: SystemAccounts, pub directories: Directories, pub directories_specifications: DirectorySpecifications, pub disk_partition: DiskPartitions, pub logical_disks: LogicalDisks, pub mapped_logical_disks: MappedLogicalDisks, pub quota_settings: QuotaSettings, pub shortcut_files: ShortcutFiles, pub volumes: Volumes, pub nt_event_log_files: NTEventlogFiles, pub nt_log_events: NTLogEvents, pub pagefiles: PageFiles, pub pagefile_settings: PageFileSettings, pub pagefile_usages: PageFileUsages, pub scheduled_jobs: ScheduledJobs, pub local_times: LocalTimes, pub utc_times: UTCTimes, pub proxys: Proxys, pub windows_product_activations: WindowsProductActivations, pub software_licensing_products: SoftwareLicensingProducts, pub software_licensing_services: SoftwareLicensingServices, pub software_licensing_token_activation_licenses: SoftwareLicensingTokenActivationLicenses, pub server_connections: ServerConnections, pub server_sessions: ServerSessions, pub shares: Shares, pub codec_files: CodecFiles, pub shadow_copys: ShadowCopys, pub shadow_contexts: ShadowContexts, pub shadow_providers: ShadowProviders,
}
Expand description

Our main struct

Holds the state/snapshot of Windows

Fields§

§processes: Processes

State of Windows Processes

§threads: Threads

State of Windows Threads

§drivers: Drivers

State of Windows Drivers

§registry: Registry

State of Windows Registry

§services: Services

State of Windows Services

§desktops: Desktops

State of Windows Desktops

§environment: Environments

State of Windows Environments

§timezones: TimeZones

State of Windows TimeZones

§user_accounts: UserAccounts

State of Windows User Accounts

§groups: Groups

State of Windows Groups

§logon_sessions: LogonSessions

State of Windows Logon Sessions

§network_login_profiles: NetworkLoginProfiles

State of Windows Network Logins

§system_accounts: SystemAccounts

State of Windows System Accounts

§directories: Directories

State of windows Directory

§directories_specifications: DirectorySpecifications

State of windows Directory Specifications

§disk_partition: DiskPartitions

State of windows Directory Disk Partitions

§logical_disks: LogicalDisks

State of windows Logical Disks

§mapped_logical_disks: MappedLogicalDisks

State of windows Mapped Logical Disks

§quota_settings: QuotaSettings

State of windows Quota Settings

§shortcut_files: ShortcutFiles

State of windows Shortcut Files

§volumes: Volumes

State of windows Volumes

§nt_event_log_files: NTEventlogFiles

State of windows NTEventLogFiles

§nt_log_events: NTLogEvents

State of windows NTLogEvents

§pagefiles: PageFiles

State of windows PageFiles

§pagefile_settings: PageFileSettings

State of windows PageFileSettings

§pagefile_usages: PageFileUsages

State of windows PageFileUsages

§scheduled_jobs: ScheduledJobs

State of windows ScheduledJobs

§local_times: LocalTimes

State of windows LocalTimes

§utc_times: UTCTimes

State of windows UTCTimes

§proxys: Proxys

State of windows Proxys

§windows_product_activations: WindowsProductActivations

State of windows WindowsProductActivations

§software_licensing_products: SoftwareLicensingProducts

State of windows SoftwareLicensingProducts

§software_licensing_services: SoftwareLicensingServices

State of windows SoftwareLicensingServices

§software_licensing_token_activation_licenses: SoftwareLicensingTokenActivationLicenses

State of windows SoftwareLicensingTokenActivationLicenses

§server_connections: ServerConnections

State of windows ServerConnections

§server_sessions: ServerSessions

State of windows ServerSessions

§shares: Shares

State of windows Shares

§codec_files: CodecFiles

State of Windows CodecFiles

§shadow_copys: ShadowCopys

State of Windows ShadowCopys

§shadow_contexts: ShadowContexts

State of Windows ShadowContexts

§shadow_providers: ShadowProviders

State of Windows ShadowProviders

Implementations§

Source§

impl Windows

Source

pub fn update(&mut self)

Synchronously update all the fields

Source

pub async fn async_update(&mut self)

Asynchronously update all the fields

Trait Implementations§

Source§

impl Clone for Windows

Source§

fn clone(&self) -> Windows

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 Windows

Source§

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

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

impl Default for Windows

Source§

fn default() -> Windows

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

impl<'de> Deserialize<'de> for Windows

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 Serialize for Windows

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

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>,