pub struct Kernel {
pub uname: Option<String>,
pub cmdline: Option<String>,
pub arch: Option<String>,
pub version: Option<String>,
pub build_info: Option<String>,
pub pid_max: u32,
pub threads_max: u32,
pub user_events_max: Option<u32>,
pub enthropy_avail: Option<u16>,
}Expand description
Information about Linux kernel
Fields§
§uname: Option<String>All data about kernel
cmdline: Option<String>Kernel command line
arch: Option<String>Kernel architecture
version: Option<String>Kernel version
build_info: Option<String>Kernel build info
pid_max: u32Max processes count
threads_max: u32Max threads count
user_events_max: Option<u32>Max user events
enthropy_avail: Option<u16>Available enthropy
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Kernel
impl RefUnwindSafe for Kernel
impl Send for Kernel
impl Sync for Kernel
impl Unpin for Kernel
impl UnwindSafe for Kernel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more