pub struct Ambient<'a> {
pub env: &'a dyn Fn(&str) -> Option<String>,
pub file_exists: &'a dyn Fn(&str) -> bool,
}Expand description
What resolution reads besides the stored credential.
Fields§
§env: &'a dyn Fn(&str) -> Option<String>An environment variable. Blank values count as unset.
file_exists: &'a dyn Fn(&str) -> boolWhether a file exists. A leading ~ is the home directory.
Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Ambient<'a>
impl<'a> !Send for Ambient<'a>
impl<'a> !Sync for Ambient<'a>
impl<'a> !UnwindSafe for Ambient<'a>
impl<'a> Freeze for Ambient<'a>
impl<'a> Unpin for Ambient<'a>
impl<'a> UnsafeUnpin for Ambient<'a>
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