Struct jj_lib::transaction::Transaction
source · pub struct Transaction { /* private fields */ }
Implementations§
source§impl Transaction
impl Transaction
pub fn new(mut_repo: MutableRepo, user_settings: &UserSettings) -> Transaction
pub fn base_repo(&self) -> &Arc<ReadonlyRepo>
pub fn set_tag(&mut self, key: String, value: String)
pub fn repo(&self) -> &MutableRepo
pub fn mut_repo(&mut self) -> &mut MutableRepo
pub fn merge_operation( &mut self, other_op: Operation ) -> Result<(), RepoLoaderError>
sourcepub fn commit(self, description: impl Into<String>) -> Arc<ReadonlyRepo>
pub fn commit(self, description: impl Into<String>) -> Arc<ReadonlyRepo>
Writes the transaction to the operation store and publishes it.
sourcepub fn write(self, description: impl Into<String>) -> UnpublishedOperation
pub fn write(self, description: impl Into<String>) -> UnpublishedOperation
Writes the transaction to the operation store, but does not publish it. That means that a repo can be loaded at the operation, but the operation will not be seen when loading the repo at head.
Auto Trait Implementations§
impl !RefUnwindSafe for Transaction
impl !Send for Transaction
impl !Sync for Transaction
impl Unpin for Transaction
impl !UnwindSafe for Transaction
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more