Enum ic_utils::call::Expiry [−][src]
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)
Tuple Fields
0: Duration
A duration that will be added to the system time when the call is made.
DateTime(SystemTime)
Tuple Fields
0: SystemTime
A specific date and time to use for the expiry of the request.
Implementations
Trait Implementations
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Expiry
impl UnwindSafe for Expiry
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more