pub struct NoCredentials;Expand description
A CredentialSource that offers nothing — the secure-by-default credential
context for a resolve that supplies no keys. It is the default threaded through
the resolver’s no-credential entry point, so an encrypted volume is never
silently skipped nor guessed: a signature-detected scheme (BitLocker/LUKS/
FileVault) surfaces crate::error::VfsError::NeedCredentials loudly, and a
credential-attempt scheme (VeraCrypt) simply fails to decrypt and falls through
(see ADR 0010).
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 CredentialSource for NoCredentials
impl CredentialSource for NoCredentials
Source§fn credentials_for(
&self,
_scheme: EncryptionScheme,
_target: &str,
) -> Vec<Credential>
fn credentials_for( &self, _scheme: EncryptionScheme, _target: &str, ) -> Vec<Credential>
Offer credentials for a target (a volume GUID / label / scheme name). An
empty slice means “none available” — the layer then errors
crate::error::VfsError::NeedCredentials rather than guessing.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