pub struct HttpDateTime(/* private fields */);Expand description
HTTP combined date and time value
Trait Implementations§
Source§impl Debug for HttpDateTime
impl Debug for HttpDateTime
Source§impl<B: BufStream> Extract<B> for HttpDateTime
impl<B: BufStream> Extract<B> for HttpDateTime
Source§type Future = Immediate<HttpDateTime>
type Future = Immediate<HttpDateTime>
The future representing the completion of the extraction logic.
Source§fn extract(ctx: &Context<'_>) -> Self::Future
fn extract(ctx: &Context<'_>) -> Self::Future
Extract the argument from the HTTP request. Read more
Source§fn extract_body(context: &Context<'_>, body: B) -> Self::Future
fn extract_body(context: &Context<'_>, body: B) -> Self::Future
Extract the argument using the HTTP request body. Read more
Source§fn requires_body(callsite: &CallSite) -> bool
fn requires_body(callsite: &CallSite) -> bool
Source§impl From<SystemTime> for HttpDateTime
impl From<SystemTime> for HttpDateTime
Source§fn from(t: SystemTime) -> Self
fn from(t: SystemTime) -> Self
Converts to this type from the input type.
Source§impl HttpTryFrom<HttpDateTime> for HeaderValue
impl HttpTryFrom<HttpDateTime> for HeaderValue
Source§type Error = InvalidHeaderValue
type Error = InvalidHeaderValue
Associated error with the conversion this implementation represents.
Source§impl Ord for HttpDateTime
impl Ord for HttpDateTime
Source§fn cmp(&self, other: &HttpDateTime) -> Ordering
fn cmp(&self, other: &HttpDateTime) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HttpDateTime
impl PartialEq for HttpDateTime
Source§impl PartialOrd for HttpDateTime
impl PartialOrd for HttpDateTime
impl Eq for HttpDateTime
impl StructuralPartialEq for HttpDateTime
Auto Trait Implementations§
impl Freeze for HttpDateTime
impl RefUnwindSafe for HttpDateTime
impl Send for HttpDateTime
impl Sync for HttpDateTime
impl Unpin for HttpDateTime
impl UnwindSafe for HttpDateTime
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more