Skip to main content

Crate tauri_plugin_os

Crate tauri_plugin_os 

Source
Expand description

Read information about the operating system.

Enums§

Error
All errors that can occur while running the os plugin.
OsType
The type of the current operating system, as returned by type_.
Version
Operating system version.

Functions§

arch
Returns the current operating system architecture, see std::env::consts::ARCH.
exe_extension
Returns the file extension, if any, used for executable binaries on this platform. Example value is exe, see std::env::consts::EXE_EXTENSION.
family
Returns the current operating system family, see std::env::consts::FAMILY.
hostname
Returns the current operating system hostname.
init
Initializes the plugin.
locale
Returns the current operating system locale with the BCP-47 language tag. If the locale couldn’t be obtained, None is returned instead.
platform
Returns a string describing the specific operating system in use, see std::env::consts::OS.
type_
Returns the current operating system type.
version
Returns the current operating system version.