mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-24 21:40:48 +02:00
chore: update documentation
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
|
||||
use serde::{Serialize, Serializer};
|
||||
|
||||
/// All errors that can occur while running the os plugin.
|
||||
///
|
||||
/// This enum currently has no variants: none of the plugin's commands can fail.
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum Error {}
|
||||
|
||||
|
||||
@@ -23,11 +23,17 @@ mod error;
|
||||
|
||||
pub use error::Error;
|
||||
|
||||
/// The type of the current operating system, as returned by [`type_`].
|
||||
pub enum OsType {
|
||||
/// Linux and Linux-based systems such as FreeBSD, DragonFly BSD, NetBSD and OpenBSD.
|
||||
Linux,
|
||||
/// Windows.
|
||||
Windows,
|
||||
/// macOS.
|
||||
Macos,
|
||||
/// iOS.
|
||||
IOS,
|
||||
/// Android.
|
||||
Android,
|
||||
}
|
||||
|
||||
@@ -127,6 +133,7 @@ impl InitJavascript<'_> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Initializes the plugin.
|
||||
pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
||||
let init_js = InitJavascript::new()
|
||||
.render_default(&Default::default())
|
||||
|
||||
Reference in New Issue
Block a user