pub struct HostEnv {Show 20 fields
pub uid: u32,
pub username: String,
pub xdg_runtime_dir: PathBuf,
pub wayland_display: Option<String>,
pub wayland_socket: Option<PathBuf>,
pub pipewire_socket: Option<PathBuf>,
pub pulse_dir: Option<PathBuf>,
pub dbus_socket: Option<PathBuf>,
pub gpu_has_dri: bool,
pub gpu_has_nvidia: bool,
pub gpu_has_nvidia_uvm: bool,
pub host_has_localtime: bool,
pub host_has_timezone_file: bool,
pub host_has_local_share_themes: bool,
pub host_has_local_share_icons: bool,
pub host_has_local_share_fonts: bool,
pub host_shell: Option<String>,
pub host_locale: Option<String>,
pub gpg_agent_socket: Option<PathBuf>,
pub gpg_home: Option<PathBuf>,
}Expand description
Resolved host environment for socket and path detection.
Fields§
§uid: u32§username: String§xdg_runtime_dir: PathBuf§wayland_display: Option<String>§wayland_socket: Option<PathBuf>§pipewire_socket: Option<PathBuf>§pulse_dir: Option<PathBuf>§dbus_socket: Option<PathBuf>§gpu_has_dri: bool§gpu_has_nvidia: bool§gpu_has_nvidia_uvm: bool§host_has_localtime: bool§host_has_timezone_file: bool§host_shell: Option<String>§host_locale: Option<String>§gpg_agent_socket: Option<PathBuf>§gpg_home: Option<PathBuf>Auto Trait Implementations§
impl Freeze for HostEnv
impl RefUnwindSafe for HostEnv
impl Send for HostEnv
impl Sync for HostEnv
impl Unpin for HostEnv
impl UnsafeUnpin for HostEnv
impl UnwindSafe for HostEnv
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> 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