Skip to main content

HostEnv

Struct HostEnv 

Source
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_has_local_share_themes: bool§host_has_local_share_icons: bool§host_has_local_share_fonts: bool§host_shell: Option<String>§host_locale: Option<String>§gpg_agent_socket: Option<PathBuf>§gpg_home: Option<PathBuf>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more