Skip to main content

Challenge

Trait Challenge 

Source
pub trait Challenge:
    TryIntoHeaderValue
    + Debug
    + Display
    + Clone
    + Send
    + Sync {
    // Required method
    fn to_bytes(&self) -> Bytes;
}
Expand description

Authentication challenge for WWW-Authenticate header.

Required Methods§

Source

fn to_bytes(&self) -> Bytes

Converts the challenge into a bytes suitable for HTTP transmission.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§