pub struct IndexBuilder { /* private fields */ }Expand description
Implementations§
Source§impl IndexBuilder
impl IndexBuilder
Sourcepub fn opaque_dir(self, path: &str) -> Self
pub fn opaque_dir(self, path: &str) -> Self
Add an opaque directory to the index.
Sourcepub fn file(self, dir: &str, name: &str, mode: u32) -> Self
pub fn file(self, dir: &str, name: &str, mode: u32) -> Self
Add a regular file entry. Mode permissions only (S_IFREG is added automatically).
Sourcepub fn subdir(self, dir: &str, name: &str, mode: u32) -> Self
pub fn subdir(self, dir: &str, name: &str, mode: u32) -> Self
Add a subdirectory entry. Mode permissions only (S_IFDIR is added automatically).
Sourcepub fn whiteout(self, dir: &str, name: &str) -> Self
pub fn whiteout(self, dir: &str, name: &str) -> Self
Add a whiteout entry (masks a name from lower layers).
Sourcepub fn tombstone(self, dir: &str, name: &str) -> Self
pub fn tombstone(self, dir: &str, name: &str) -> Self
Add an overflow tombstone name for a directory.
Sourcepub fn build_to_file(self, path: &Path) -> Result<()>
pub fn build_to_file(self, path: &Path) -> Result<()>
Write valid index to a file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexBuilder
impl RefUnwindSafe for IndexBuilder
impl Send for IndexBuilder
impl Sync for IndexBuilder
impl Unpin for IndexBuilder
impl UnsafeUnpin for IndexBuilder
impl UnwindSafe for IndexBuilder
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