pub struct EnvironmentConfig {
pub platform: PlatformEnvironment,
pub paths: PathEnvOverrides,
pub network: NetworkEnvOverrides,
pub agent: AgentEnvOverrides,
pub retrieval: RetrievalEnvOverrides,
pub workers: WorkerEnvOverrides,
pub file_index: FileIndexEnvOverrides,
pub telemetry: TelemetryEnvOverrides,
}Expand description
Fully parsed process environment relevant to relay-knowledge.
Fields§
§platform: PlatformEnvironment§paths: PathEnvOverrides§network: NetworkEnvOverrides§agent: AgentEnvOverrides§retrieval: RetrievalEnvOverrides§workers: WorkerEnvOverrides§file_index: FileIndexEnvOverrides§telemetry: TelemetryEnvOverridesImplementations§
Source§impl EnvironmentConfig
impl EnvironmentConfig
Sourcepub fn from_process() -> Result<Self, EnvError>
pub fn from_process() -> Result<Self, EnvError>
Reads and validates the current process environment.
Sourcepub fn from_pairs<I, K, V>(
platform: PlatformKind,
pairs: I,
) -> Result<Self, EnvError>
pub fn from_pairs<I, K, V>( platform: PlatformKind, pairs: I, ) -> Result<Self, EnvError>
Parses a deterministic environment snapshot.
Trait Implementations§
Source§impl Clone for EnvironmentConfig
impl Clone for EnvironmentConfig
Source§fn clone(&self) -> EnvironmentConfig
fn clone(&self) -> EnvironmentConfig
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 EnvironmentConfig
impl Debug for EnvironmentConfig
Source§impl PartialEq for EnvironmentConfig
impl PartialEq for EnvironmentConfig
Source§fn eq(&self, other: &EnvironmentConfig) -> bool
fn eq(&self, other: &EnvironmentConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EnvironmentConfig
impl StructuralPartialEq for EnvironmentConfig
Auto Trait Implementations§
impl Freeze for EnvironmentConfig
impl RefUnwindSafe for EnvironmentConfig
impl Send for EnvironmentConfig
impl Sync for EnvironmentConfig
impl Unpin for EnvironmentConfig
impl UnsafeUnpin for EnvironmentConfig
impl UnwindSafe for EnvironmentConfig
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