pub fn find_credential(&self, path: &Path) -> Result<Credential> {
        match Entry::find(&self.0, path)? {
            Entry::Credential(credential_entry) => Ok(credential_entry),
            other => {
                let msg = format!("expecting credential, found {:?}", other);
                Err(ErrorKind::TypeInvalid(msg).into())
            }
        }
    }
/// Obtain a credential from the directory
Obtain a credential from the directory
Obtain a credential from the directory
pub fn find_credential(&self, path: &Path) -> Result<Credential> {
        match Entry::find(&self.0, path)? {
            Entry::Credential(credential_entry) => Ok(credential_entry),
            other => {
                let msg = format!("expecting credential, found {:?}", other);
                Err(ErrorKind::TypeInvalid(msg).into())
            }
        }
    }
pub fn find_credential ( & self , path : & Path ) -> Result < Credential > { match Entry :: find ( & self . 0 , path ) ? { Entry :: Credential ( credential_entry ) => Ok ( credential_entry ) , other => { let msg = format ! ( " " other ) ; Err ( ErrorKind :: TypeInvalid ( msg ) . into ( ) ) } } }
Obtain a credential from the directory
Obtain a credential from the directory
&self
path
&Path
&self
path
&Path