Struct rustbreak::Transaction [] [src]

pub struct Transaction<'a, T: Serialize + Deserialize + Eq + Hash + 'a> { /* fields omitted */ }

A Transaction that is atomic in writes

You generate this by calling transaction on a Database The transaction does not get automatically applied when it is dropped, you have to run it. This allows for defensive programming where the values are only applied once it is run.

Methods

impl<'a, T: Serialize + Deserialize + Eq + Hash + 'a> Transaction<'a, T>
[src]

Insert a given Object into the Database at that key

See Database::insert for details

Retrieves an Object from the Database

See Database::retrieve for details

Consumes the Transaction and runs it