pub struct SystemInfo {
pub system_id: Option<Vec<u8>>,
pub git_hash: Option<Vec<u8>>,
pub git_short_hash: Option<Vec<u8>>,
pub version: String,
pub cpu_physical_cores: u16,
pub total_memory: u64,
pub fd_limit: u32,
pub proxy_socket_limit_per_cpu_core: Option<u32>,
}Fields§
§system_id: Option<Vec<u8>>unique system (machine) identifier
git_hash: Option<Vec<u8>>full git commit hash
git_short_hash: Option<Vec<u8>>short git commit hash
version: Stringcrate (workspace) version
cpu_physical_cores: u16number of physical CPU cores
total_memory: u64total system memory in bytes
fd_limit: u32file descriptor limit of the current process
proxy_socket_limit_per_cpu_core: Option<u32>maximum number of sockets per CPU core
Trait Implementations§
Source§impl AsRef<SystemInfo> for SystemInfo
impl AsRef<SystemInfo> for SystemInfo
Source§fn as_ref(&self) -> &SystemInfo
fn as_ref(&self) -> &SystemInfo
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for SystemInfo
impl Clone for SystemInfo
Source§fn clone(&self) -> SystemInfo
fn clone(&self) -> SystemInfo
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemInfo
impl Debug for SystemInfo
Auto Trait Implementations§
impl Freeze for SystemInfo
impl RefUnwindSafe for SystemInfo
impl Send for SystemInfo
impl Sync for SystemInfo
impl Unpin for SystemInfo
impl UnwindSafe for SystemInfo
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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