Struct maelstrom_layer_fs::DirectoryDataReader
source · pub struct DirectoryDataReader { /* private fields */ }
Expand description
Reads data from a LayerFS directory contents file (<offset>.dir_data.bin
)
Implementations§
source§impl DirectoryDataReader
impl DirectoryDataReader
pub async fn new(layer_fs: &LayerFs, file_id: FileId) -> Result<Self>
pub async fn look_up(&mut self, entry_name: &str) -> Result<Option<FileId>>
pub async fn look_up_entry( &mut self, entry_name: &str ) -> Result<Option<DirectoryEntryData>>
pub async fn next_entry( &mut self ) -> Result<Option<(u64, AvlNode<String, DirectoryEntryData>)>>
pub async fn into_stream( self, offset: DirectoryOffset ) -> Result<impl Stream<Item = Result<(u64, AvlNode<String, DirectoryEntryData>)>> + Send>
pub async fn into_ordered_stream( self ) -> Result<Pin<Box<dyn Stream<Item = Result<(String, DirectoryEntryData)>> + Send>>>
Auto Trait Implementations§
impl !Freeze for DirectoryDataReader
impl !RefUnwindSafe for DirectoryDataReader
impl Send for DirectoryDataReader
impl Sync for DirectoryDataReader
impl Unpin for DirectoryDataReader
impl UnwindSafe for DirectoryDataReader
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