pub struct WalManager { /* private fields */ }Expand description
Manager for WAL operations
Implementations§
Source§impl WalManager
impl WalManager
Sourcepub fn open(git_dir: &Path) -> Result<Self, GitError>
pub fn open(git_dir: &Path) -> Result<Self, GitError>
Open a WAL manager for the repository at the given path
Sourcepub fn head(&self) -> Result<Option<Oid>, GitError>
pub fn head(&self) -> Result<Option<Oid>, GitError>
Get the current WAL head commit OID, if any
Sourcepub fn append(
&self,
actor_id: &ActorId,
events: &[Event],
) -> Result<Oid, GitError>
pub fn append( &self, actor_id: &ActorId, events: &[Event], ) -> Result<Oid, GitError>
Append events to the WAL, creating a new commit
Auto Trait Implementations§
impl Freeze for WalManager
impl RefUnwindSafe for WalManager
impl Send for WalManager
impl !Sync for WalManager
impl Unpin for WalManager
impl UnwindSafe for WalManager
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