pub struct NetrcProvider;Expand description
Reads machine-specific entries in ~/.netrc. A default entry is deliberately ignored so credentials cannot be sent to an arbitrary redirect destination.
Trait Implementations§
Source§impl CredentialProvider for NetrcProvider
impl CredentialProvider for NetrcProvider
fn credential_for(&self, host: &str) -> Result<Option<Credential>>
fn identity_for(&self, host: &str) -> Option<String>
Auto Trait Implementations§
impl Freeze for NetrcProvider
impl RefUnwindSafe for NetrcProvider
impl Send for NetrcProvider
impl Sync for NetrcProvider
impl Unpin for NetrcProvider
impl UnsafeUnpin for NetrcProvider
impl UnwindSafe for NetrcProvider
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