pub struct EnvCredentials { /* private fields */ }Expand description
Reads the key from the environment, trying each name in turn.
The other half of what the engine already did — the daemon’s own client is built this way — and the smallest example of a source that keeps nothing on disk.
Implementations§
Source§impl EnvCredentials
impl EnvCredentials
Sourcepub fn new(names: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn new(names: impl IntoIterator<Item = impl Into<String>>) -> Self
Also holds every name back from the environment child processes
inherit (hold_back_credential).
Trait Implementations§
Source§impl CredentialSource for EnvCredentials
impl CredentialSource for EnvCredentials
Auto Trait Implementations§
impl Forget for EnvCredentials
impl Freeze for EnvCredentials
impl Move for EnvCredentials
impl RefUnwindSafe for EnvCredentials
impl Send for EnvCredentials
impl Sync for EnvCredentials
impl Unpin for EnvCredentials
impl UnsafeUnpin for EnvCredentials
impl UnwindSafe for EnvCredentials
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