Struct jujutsu_lib::transaction::Transaction [−][src]
pub struct Transaction { /* fields omitted */ }
Implementations
impl Transaction
[src]
impl Transaction
[src]pub fn new(mut_repo: Arc<MutableRepo>, description: &str) -> Transaction
[src]
pub fn base_repo(&self) -> &ReadonlyRepo
[src]
pub fn set_parents(&mut self, parents: Vec<OperationId>)
[src]
pub fn set_tag(&mut self, key: String, value: String)
[src]
pub fn mut_repo(&mut self) -> &mut MutableRepo
[src]
pub fn commit(self) -> Arc<ReadonlyRepo>
[src]
pub fn commit(self) -> Arc<ReadonlyRepo>
[src]Writes the transaction to the operation store and publishes it.
pub fn write(self) -> UnpublishedOperation
[src]
pub fn write(self) -> UnpublishedOperation
[src]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.
pub fn discard(self)
[src]
Trait Implementations
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,