Enum ic_utils::call::Expiry[][src]

pub enum Expiry {
    Unspecified,
    Delay(Duration),
    DateTime(SystemTime),
}

An expiry value. Either not specified (the default), a delay relative to the time the call is made, or a specific date time.

Variants

Unspecified

Unspecified. Will not try to override the Agent’s value, which might itself have its own default value.

Delay(Duration)

A duration that will be added to the system time when the call is made.

DateTime(SystemTime)

A specific date and time to use for the expiry of the request.

Implementations

impl Expiry[src]

pub fn after(d: Duration) -> Self[src]

Create an expiry that happens after a duration.

pub fn at(dt: SystemTime) -> Self[src]

Set the expiry field to a specific date and time.

Trait Implementations

impl Clone for Expiry[src]

impl Debug for Expiry[src]

impl Default for Expiry[src]

impl Eq for Expiry[src]

impl From<Duration> for Expiry[src]

impl From<SystemTime> for Expiry[src]

impl Ord for Expiry[src]

impl PartialEq<Expiry> for Expiry[src]

impl PartialOrd<Expiry> for Expiry[src]

impl StructuralEq for Expiry[src]

impl StructuralPartialEq for Expiry[src]

Auto Trait Implementations

impl RefUnwindSafe for Expiry

impl Send for Expiry

impl Sync for Expiry

impl Unpin for Expiry

impl UnwindSafe for Expiry

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