Struct lockchain_core::Record[][src]

pub struct Record<T: Body> {
    pub header: Header,
    pub body: Option<T>,
}

Represents a whole record in memory

The body field can be None if it hasn't been cached yet. Calling body() will either resolve the data from disk or still return None if the current setting doesn't support body loading (such as the lockchain-server which has no cryptocraphy subsystem)

Fields

Methods

impl<T: Body> Record<T>
[src]

Create a new Record, generically for a backend in question

Attempt to set a key to a certain value

Attempt to read out the value of a certain key

Trait Implementations

impl<T: Debug + Body> Debug for Record<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Eq + Body> Eq for Record<T>
[src]

impl<T: PartialEq + Body> PartialEq for Record<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Clone + Body> Clone for Record<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Body> AutoEncoder for Record<T>
[src]

Auto Trait Implementations

impl<T> Send for Record<T>

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