[][src]Struct domain::rdata::rfc2845::Time48

pub struct Time48(_);

A 48-bit Unix timestamp.

Implementations

impl Time48[src]

pub fn now() -> Time48[src]

Returns the timestamp of the current moment.

The funtion will panic if for whatever reason the current moment is too far in the future to fit into this type. For a correctly set clock, this will happen in December 8,921,556, so should be fine.

pub fn from_u64(value: u64) -> Self[src]

Creates a value from a 64 bit integer.

The upper 16 bits of the arument must be zero or else this function panics. This is also why we don’t implement From.

pub fn into_octets(self) -> [u8; 6][src]

Converts a value into its wire format.

Returns the octets of the encoded value in network byte order.

pub fn eq_fudged(self, other: Self, fudge: u64) -> bool[src]

Returns whether the time is within a given period.

Returns true iff other is at most fudge seconds before or after this value’s time.

Trait Implementations

impl Clone for Time48[src]

impl Compose for Time48[src]

impl Copy for Time48[src]

impl Debug for Time48[src]

impl Display for Time48[src]

impl Eq for Time48[src]

impl From<Time48> for u64[src]

impl Hash for Time48[src]

impl Ord for Time48[src]

impl<Ref: AsRef<[u8]>> Parse<Ref> for Time48[src]

impl PartialEq<Time48> for Time48[src]

impl PartialOrd<Time48> for Time48[src]

impl StructuralEq for Time48[src]

impl StructuralPartialEq for Time48[src]

Auto Trait Implementations

impl RefUnwindSafe for Time48

impl Send for Time48

impl Sync for Time48

impl Unpin for Time48

impl UnwindSafe for Time48

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<T> From<T> 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,