#[non_exhaustive]pub enum Expiration {
Ttl(Box<Duration>),
ExpireTime(Box<Timestamp>),
}Expand description
The amount of time that a device will be initially allocated for.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ttl(Box<Duration>)
Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.
ExpireTime(Box<Timestamp>)
Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.
Trait Implementations§
Source§impl Clone for Expiration
impl Clone for Expiration
Source§fn clone(&self) -> Expiration
fn clone(&self) -> Expiration
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Expiration
impl Debug for Expiration
Source§impl PartialEq for Expiration
impl PartialEq for Expiration
impl StructuralPartialEq for Expiration
Auto Trait Implementations§
impl Freeze for Expiration
impl RefUnwindSafe for Expiration
impl Send for Expiration
impl Sync for Expiration
impl Unpin for Expiration
impl UnwindSafe for Expiration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more