pub enum Expiry {
Unspecified,
Delay(Duration),
DateTime(SystemTime),
}Expand description
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§
Trait Implementations§
source§impl From<SystemTime> for Expiry
impl From<SystemTime> for Expiry
source§fn from(dt: SystemTime) -> Self
fn from(dt: SystemTime) -> Self
Converts to this type from the input type.
source§impl Ord for Expiry
impl Ord for Expiry
source§impl PartialOrd<Expiry> for Expiry
impl PartialOrd<Expiry> for Expiry
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more