[][src]Enum aerospike::Expiration

pub enum Expiration {
    Seconds(u32),
    NamespaceDefault,
    Never,
    DontUpdate,
}

Record expiration, also known as time-to-live (TTL).

Variants

Seconds(u32)

Set the record to expire X seconds from now

NamespaceDefault

Set the record's expiry time using the default time-to-live (TTL) value for the namespace

Never

Set the record to never expire. Requires Aerospike 2 server version 2.7.2 or later or Aerospike 3 server version 3.1.4 or later. Do not use with older servers.

DontUpdate

Do not change the record's expiry time when updating the record; requires Aerospike server version 3.10.1 or later.

Trait Implementations

impl From<Expiration> for u32[src]

impl Clone for Expiration[src]

impl Copy for Expiration[src]

impl Debug for Expiration[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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 = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,