pub struct SystemInfo {
pub family: String,
pub os: String,
pub arch: String,
pub current_dir: PathBuf,
pub main_separator: char,
pub username: String,
pub shell: String,
}Expand description
Represents information about a system
Fields§
§family: StringFamily of the operating system as described in https://doc.rust-lang.org/std/env/consts/constant.FAMILY.html
os: StringName of the specific operating system as described in https://doc.rust-lang.org/std/env/consts/constant.OS.html
arch: StringArchitecture of the CPI as described in https://doc.rust-lang.org/std/env/consts/constant.ARCH.html
current_dir: PathBufCurrent working directory of the running server process
main_separator: charPrimary separator for path components for the current platform as defined in https://doc.rust-lang.org/std/path/constant.MAIN_SEPARATOR.html
username: StringName of the user running the server process
shell: StringDefault shell tied to user running the server process
Trait Implementations§
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 · Source§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
Source§impl<'de> Deserialize<'de> for SystemInfo
impl<'de> Deserialize<'de> for SystemInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SystemInfo
impl PartialEq for SystemInfo
Source§impl Serialize for SystemInfo
impl Serialize for SystemInfo
impl Eq for SystemInfo
impl StructuralPartialEq 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§
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