pub enum EnvironmentSource {
System,
Custom(Box<dyn Fn(&str) -> Option<String> + Send + Sync>),
}Expand description
Source of environment variables (for testing and custom providers)
Variants§
System
Use system environment variables
Custom(Box<dyn Fn(&str) -> Option<String> + Send + Sync>)
Use custom environment provider (for testing)
Implementations§
Trait Implementations§
Source§impl Clone for EnvironmentSource
impl Clone for EnvironmentSource
Source§impl Debug for EnvironmentSource
impl Debug for EnvironmentSource
Auto Trait Implementations§
impl Freeze for EnvironmentSource
impl !RefUnwindSafe for EnvironmentSource
impl Send for EnvironmentSource
impl Sync for EnvironmentSource
impl Unpin for EnvironmentSource
impl !UnwindSafe for EnvironmentSource
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