After some discussion with PVH I realise that the repo structure in the last reorg was very rust-centric. In an attempt to put each language on a level footing move the rust code and project files into ./rust
20 lines
544 B
Rust
20 lines
544 B
Rust
use crate::ChangeHash;
|
|
|
|
/// The result of a successful, and committed, transaction.
|
|
#[derive(Debug)]
|
|
pub struct Success<O, Obs> {
|
|
/// The result of the transaction.
|
|
pub result: O,
|
|
/// The hash of the change, also the head of the document.
|
|
pub hash: ChangeHash,
|
|
pub op_observer: Obs,
|
|
}
|
|
|
|
/// The result of a failed, and rolled back, transaction.
|
|
#[derive(Debug)]
|
|
pub struct Failure<E> {
|
|
/// The error returned from the transaction.
|
|
pub error: E,
|
|
/// The number of operations cancelled.
|
|
pub cancelled: usize,
|
|
}
|