pub struct RefsStore { /* private fields */ }Implementations§
Source§impl RefsStore
impl RefsStore
pub fn new(root: impl Into<PathBuf>, wal: Wal) -> Self
pub fn ensure_dirs(&self) -> Result<()>
pub fn head_get(&self, name: &str) -> Result<Option<Hash>>
pub fn head_set(&self, name: &str, hash: Hash) -> Result<()>
pub fn state_get(&self, name: &str) -> Result<Option<Hash>>
pub fn state_set(&self, name: &str, hash: Hash) -> Result<()>
pub fn root(&self) -> &PathBuf
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RefsStore
impl RefUnwindSafe for RefsStore
impl Send for RefsStore
impl Sync for RefsStore
impl Unpin for RefsStore
impl UnsafeUnpin for RefsStore
impl UnwindSafe for RefsStore
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