Struct ajars_actix_web::actix_web::http::header::HttpDate [−]
pub struct HttpDate(_);
Expand description
A timestamp with HTTP formatting and parsing.
Trait Implementations
impl From<SystemTime> for HttpDate
impl From<SystemTime> for HttpDate
pub fn from(sys: SystemTime) -> HttpDate
pub fn from(sys: SystemTime) -> HttpDate
Performs the conversion.
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
impl IntoHeaderValue for HttpDate
impl IntoHeaderValue for HttpDate
type Error = InvalidHeaderValue
type Error = InvalidHeaderValue
The type returned in the event of a conversion error.
pub fn try_into_value(
self
) -> Result<HeaderValue, <HttpDate as IntoHeaderValue>::Error>
pub fn try_into_value(
self
) -> Result<HeaderValue, <HttpDate as IntoHeaderValue>::Error>
Try to convert value to a HeaderValue.
impl PartialOrd<HttpDate> for HttpDate
impl PartialOrd<HttpDate> for HttpDate
pub fn partial_cmp(&self, other: &HttpDate) -> Option<Ordering>
pub fn partial_cmp(&self, other: &HttpDate) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl StructuralEq for HttpDate
impl StructuralPartialEq for HttpDate
Auto Trait Implementations
impl RefUnwindSafe for HttpDate
impl UnwindSafe for HttpDate
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V