[−][src]Enum ic_utils::call::Expiry
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. 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]
fn from(dt: SystemTime) -> Self[src]
impl Ord for Expiry[src]
fn cmp(&self, other: &Expiry) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<Expiry> for Expiry[src]
impl PartialOrd<Expiry> for Expiry[src]
fn partial_cmp(&self, other: &Expiry) -> Option<Ordering>[src]
fn lt(&self, other: &Expiry) -> bool[src]
fn le(&self, other: &Expiry) -> bool[src]
fn gt(&self, other: &Expiry) -> bool[src]
fn ge(&self, other: &Expiry) -> bool[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,