pub struct Directory<T>(/* private fields */);
Implementations§
Source§impl<T> Directory<T>
impl<T> Directory<T>
pub const INIT_BLOCK_SIZE: usize = 512usize
Sourcepub fn entry_kind(&self, name: &str) -> Option<EntryKind>
pub fn entry_kind(&self, name: &str) -> Option<EntryKind>
Get the type of the child object
Source§impl<T: Read + Write + Seek> Directory<T>
impl<T: Read + Write + Seek> Directory<T>
pub fn make_root(back: T) -> Result<Directory<T>>
pub fn open_root_for_update(back: T, offset: u64) -> Result<Directory<T>>
pub fn flush(&mut self) -> Result<()>
pub fn create_blob(&mut self, name: &str, size: usize) -> Result<Blob<T>>
pub fn open_or_create_directory(&mut self, name: &str) -> Result<Directory<T>>where
T: Send + 'static,
pub fn create_directory(&mut self, name: &str) -> Result<Directory<T>>where
T: Send + 'static,
pub fn create_stream( &mut self, name: &str, frame_size: usize, ) -> Result<Stream<T>>
pub fn open_directory_for_update(&self, name: &str) -> Result<Directory<T>>
Source§impl<T: Read + Seek> Directory<T>
impl<T: Read + Seek> Directory<T>
Sourcepub fn open_root(back: T, offset: u64) -> Result<Directory<T>>
pub fn open_root(back: T, offset: u64) -> Result<Directory<T>>
Open an root directory from a seek-able backend stream and an absolute offset
pub fn open_blob(&self, name: &str) -> Result<Blob<T>>
pub fn open_stream_by_offset( &self, offset: u64, frame_size: usize, ) -> Result<Stream<T>>
pub fn open_stream(&self, name: &str) -> Result<Stream<T>>
pub fn open_directory(&self, name: &str) -> Result<Directory<T>>
pub fn open<P: AsRef<Path>>(&self, path: P) -> Result<OpenResult<T>>
pub fn recurse<Handle: FnMut(&Path, EntryKind) -> bool>(&self, handle: Handle)
pub fn find_first_object(&self, name: &str) -> Option<PathBuf>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Directory<T>
impl<T> RefUnwindSafe for Directory<T>
impl<T> Send for Directory<T>where
T: Send,
impl<T> Sync for Directory<T>where
T: Send,
impl<T> Unpin for Directory<T>
impl<T> UnwindSafe for Directory<T>
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