pub struct Journal {
pub dir: PathBuf,
}Expand description
Directory layout under .treeship/journals/approval-use/.
Fields§
§dir: PathBufRoot directory.
Implementations§
Source§impl Journal
impl Journal
pub fn new(dir: impl Into<PathBuf>) -> Self
pub fn records_dir(&self) -> PathBuf
pub fn heads_dir(&self) -> PathBuf
pub fn indexes_dir(&self) -> PathBuf
pub fn locks_dir(&self) -> PathBuf
pub fn current_head_path(&self) -> PathBuf
pub fn lock_path(&self) -> PathBuf
pub fn meta_path(&self) -> PathBuf
Sourcepub fn by_grant_path(&self, grant_id: &str) -> PathBuf
pub fn by_grant_path(&self, grant_id: &str) -> PathBuf
Index file for a given grant. Each line is one record_index.
Sourcepub fn by_nonce_path(&self, nonce_digest: &str) -> PathBuf
pub fn by_nonce_path(&self, nonce_digest: &str) -> PathBuf
Index file for a nonce_digest.
Auto Trait Implementations§
impl Freeze for Journal
impl RefUnwindSafe for Journal
impl Send for Journal
impl Sync for Journal
impl Unpin for Journal
impl UnsafeUnpin for Journal
impl UnwindSafe for Journal
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