[][src]Struct libra_secure_storage::GetResponse

pub struct GetResponse<T> {
    pub last_update: u64,
    pub value: T,
}

A container for a get response that contains relevant metadata and the value stored at the given key.

Fields

last_update: u64

Time since Unix Epoch in seconds.

value: T

Value stored at the provided key

Implementations

impl<T> GetResponse<T>[src]

pub fn new(value: T, last_update: u64) -> Self[src]

Creates a GetResponse

Trait Implementations

impl<T: Debug> Debug for GetResponse<T>[src]

impl<'de, T> Deserialize<'de> for GetResponse<T> where
    T: Deserialize<'de>, 
[src]

impl<T: PartialEq> PartialEq<GetResponse<T>> for GetResponse<T>[src]

impl<T> Serialize for GetResponse<T> where
    T: Serialize
[src]

impl<T> StructuralPartialEq for GetResponse<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for GetResponse<T> where
    T: RefUnwindSafe

impl<T> Send for GetResponse<T> where
    T: Send

impl<T> Sync for GetResponse<T> where
    T: Sync

impl<T> Unpin for GetResponse<T> where
    T: Unpin

impl<T> UnwindSafe for GetResponse<T> where
    T: UnwindSafe

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<T> TestOnlyHash for T where
    T: Serialize + ?Sized
[src]

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

type Error = Infallible

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<V, T> VZip<V> for T where
    V: MultiLane<T>,