Struct wasm_framework::HttpDate[][src]

pub struct HttpDate(_);

Time in UTC, with conversions to/from u64 and rfc2822

Implementations

impl HttpDate[src]

pub fn timestamp(&self) -> u64[src]

Convert HttpDate to i64 timestamp (seconds since EPOCH in UTC)

Trait Implementations

impl Clone for HttpDate[src]

impl Copy for HttpDate[src]

impl Debug for HttpDate[src]

impl Display for HttpDate[src]

Convert HttpDate to printable string in rfc2822 format

impl Eq for HttpDate[src]

impl From<i64> for HttpDate[src]

Convert i64 timestamp (seconds since EPOCH in UTC) to HttpDate

impl From<u64> for HttpDate[src]

Convert u64 timestamp (seconds since EPOCH in UTC) to HttpDate

impl FromStr for HttpDate[src]

type Err = ParseError

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<HttpDate, Self::Err>[src]

Parse string to HttpDate

impl Ord for HttpDate[src]

impl PartialEq<HttpDate> for HttpDate[src]

impl PartialOrd<HttpDate> for HttpDate[src]

impl StructuralEq for HttpDate[src]

impl StructuralPartialEq for HttpDate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.