[][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.


last_update: u64

Time since Unix Epoch in seconds.

value: T

Value stored at the provided key


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>, 

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

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

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

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

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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>,