[][src]Struct spartan_lib::core::message::Time

pub struct Time { /* fields omitted */ }

A time manager for handling message dispatch times, timeouts, delays and timezones

Be aware, that all time handling itself is accessible to Message only

Implementations

impl Time[src]

pub fn offset(&self) -> &Offset[src]

Get message timezone offset.

pub fn dispatched_at(&self) -> &DateTime<FixedOffset>[src]

Get message dispatch time with offset awareness.

pub fn delay(&self) -> &Option<DateTime<FixedOffset>>[src]

Get message availability time.

If current time > delay, then message is available for obtaining.

For implementation details you may want to check out Message implementation of Dispatchable trait.

pub fn timeout(&self) -> &Timeout[src]

Get message timeout options.

Trait Implementations

impl Clone for Time[src]

impl Debug for Time[src]

impl<'de> Deserialize<'de> for Time[src]

impl Serialize for Time[src]

Auto Trait Implementations

impl RefUnwindSafe for Time[src]

impl Send for Time[src]

impl Sync for Time[src]

impl Unpin for Time[src]

impl UnwindSafe for Time[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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>,