pub struct DiscoveryEnv {
pub caliban_daemon_runtime_dir: Option<PathBuf>,
pub xdg_runtime_dir: Option<PathBuf>,
pub tmpdir: Option<PathBuf>,
}Expand description
The subset of process environment that affects socket-path resolution. Captured explicitly so resolution is a pure, testable function.
Fields§
§caliban_daemon_runtime_dir: Option<PathBuf>$CALIBAN_DAEMON_RUNTIME_DIR — highest priority base dir.
xdg_runtime_dir: Option<PathBuf>$XDG_RUNTIME_DIR — caliban subdir is used when set.
tmpdir: Option<PathBuf>$TMPDIR — fallback base, caliban-daemon subdir.
Implementations§
Source§impl DiscoveryEnv
impl DiscoveryEnv
Sourcepub fn from_process() -> Self
pub fn from_process() -> Self
Capture the relevant variables from the real process environment.
Trait Implementations§
Source§impl Clone for DiscoveryEnv
impl Clone for DiscoveryEnv
Source§fn clone(&self) -> DiscoveryEnv
fn clone(&self) -> DiscoveryEnv
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DiscoveryEnv
impl Debug for DiscoveryEnv
Source§impl Default for DiscoveryEnv
impl Default for DiscoveryEnv
Source§fn default() -> DiscoveryEnv
fn default() -> DiscoveryEnv
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DiscoveryEnv
impl RefUnwindSafe for DiscoveryEnv
impl Send for DiscoveryEnv
impl Sync for DiscoveryEnv
impl Unpin for DiscoveryEnv
impl UnsafeUnpin for DiscoveryEnv
impl UnwindSafe for DiscoveryEnv
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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