Enum retry_after::RetryAfter [] [src]

pub enum RetryAfter {
    Delay(Duration),
    DateTime(DateTime<UTC>),
}

Retry-After header, defined in RFC7231

Variants

Delay

Retry after this duration has elapsed

This can be coupled with a response time header to produce a DateTime.

DateTime

Retry after the given DateTime

Trait Implementations

impl Header for RetryAfter

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Result<RetryAfter>

impl HeaderFormat for RetryAfter

fn fmt_header(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Eq for RetryAfter

impl PartialEq for RetryAfter

fn eq(&self, __arg_0: &RetryAfter) -> bool

fn ne(&self, __arg_0: &RetryAfter) -> bool

impl Clone for RetryAfter

fn clone(&self) -> RetryAfter

fn clone_from(&mut self, source: &Self)

impl Copy for RetryAfter

impl Debug for RetryAfter

fn fmt(&self, __arg_0: &mut Formatter) -> Result