- Commit now returns just a single hash rather than a vec. Since the change we create from committing has all of the heads as deps there can only be one hash/head after committing. - Apply changes now takes a Vec rather than a slice. This avoids having to clone them inside. - transact_with now passes the result of the closure to the commit options function - Remove patch struct - Change receive_sync_message to return a () instead of the `Option<Patch>` - Change `Transaction*` structs to just `*` and use the transaction module - Make CommitOptions fields public
14 lines
358 B
Rust
14 lines
358 B
Rust
mod commit;
|
|
mod inner;
|
|
mod manual_transaction;
|
|
mod result;
|
|
mod transactable;
|
|
|
|
pub use self::commit::CommitOptions;
|
|
pub use self::transactable::Transactable;
|
|
pub(crate) use inner::TransactionInner;
|
|
pub use manual_transaction::Transaction;
|
|
pub use result::Failure;
|
|
pub use result::Success;
|
|
|
|
pub type Result<O, E> = std::result::Result<Success<O>, Failure<E>>;
|