Docs.rs
quork-0.7.0
quork 0.7.0
Permalink
Docs.rs crate page
MIT OR Apache-2.0
Links
Homepage
Documentation
Repository
Crates.io
Source
Owners
jewlexx
Dependencies
cfg-if ^1.0
normal
lock_api ^0.4
normal
optional
quork-proc ^0.3
normal
optional
spin ^0.9
normal
optional
thiserror ^1.0
normal
is-root ^0.1
dev
cc ^1.0
build
nix ^0.28
normal
windows ^0.56
normal
Versions
100%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
quork
0.7.0
In quork::root
?
Settings
Function
quork
::
root
::
is_root
Copy item path
source
·
[
−
]
pub fn is_root() ->
Result
<
bool
,
Error
>
Expand description
Checks if the process has root privileges
§
Errors
On Windows, may return an error if the process elevation cannot be checked
On Unix-like, no errors will ever be returned