Struct digest_access::DigestAccess
source · pub struct DigestAccess { /* private fields */ }
Implementations§
source§impl DigestAccess
impl DigestAccess
pub fn set_username<A: Into<String>>(&mut self, username: A)
pub fn set_password(&mut self, password: &str)
pub fn set_hashed_user_realm_password<A: Into<Vec<u8>>>(&mut self, hashed: A)
Generate the Authorization header value
pub fn nonce(&self) -> &str
pub fn cnonce() -> String
pub fn hash_user_realm_password<T: Digest>( username: &str, realm: &str, password: &str ) -> Output<T>
Trait Implementations§
source§impl Debug for DigestAccess
impl Debug for DigestAccess
source§impl FromStr for DigestAccess
impl FromStr for DigestAccess
source§impl<'a> TryFrom<&'a HeaderMap> for DigestAccess
impl<'a> TryFrom<&'a HeaderMap> for DigestAccess
source§fn try_from(headers: &HeaderMap) -> Result<DigestAccess, Self::Error>
fn try_from(headers: &HeaderMap) -> Result<DigestAccess, Self::Error>
Returns a DigestScheme object if the HTTP response HeaderMap contains a digest authenticate header
§type Error = DigestParseError
type Error = DigestParseError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for DigestAccess
impl RefUnwindSafe for DigestAccess
impl Send for DigestAccess
impl Sync for DigestAccess
impl Unpin for DigestAccess
impl UnwindSafe for DigestAccess
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