pub struct NoCredentials;Expand description
A CredentialProvider that never supplies credentials, so every request is
attempted unauthenticated. This is what an embedder targeting public remotes
(e.g. heddle) uses to suppress prompts.
Trait Implementations§
Source§impl Clone for NoCredentials
impl Clone for NoCredentials
Source§fn clone(&self) -> NoCredentials
fn clone(&self) -> NoCredentials
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 moreimpl Copy for NoCredentials
Source§impl CredentialProvider for NoCredentials
impl CredentialProvider for NoCredentials
Source§fn fill(&mut self, _request: GitCredential) -> Result<Option<GitCredential>>
fn fill(&mut self, _request: GitCredential) -> Result<Option<GitCredential>>
Complete
request into a usable credential, or return None to attempt
the request without authentication.Source§impl Debug for NoCredentials
impl Debug for NoCredentials
Source§impl Default for NoCredentials
impl Default for NoCredentials
Source§fn default() -> NoCredentials
fn default() -> NoCredentials
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoCredentials
impl RefUnwindSafe for NoCredentials
impl Send for NoCredentials
impl Sync for NoCredentials
impl Unpin for NoCredentials
impl UnsafeUnpin for NoCredentials
impl UnwindSafe for NoCredentials
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