pub struct FileEntry { /* private fields */ }Expand description
Entry for a file read from the mega file files table.
Implementations§
Source§impl FileEntry
impl FileEntry
Sourcepub fn range(&self) -> Range<usize>
pub fn range(&self) -> Range<usize>
Get the range of the original MEGA file occupied by this file’s contents.
Sourcepub fn extract_from<'read, R: Read + Seek + 'read>(
&self,
reader: R,
options: &MegReadOptions,
) -> Result<FileSegmentReader<'read>>
pub fn extract_from<'read, R: Read + Seek + 'read>( &self, reader: R, options: &MegReadOptions, ) -> Result<FileSegmentReader<'read>>
Extract this file from the given reader. The provided reader must represent the same MEGA file that this FileEntry belongs to.
Auto Trait Implementations§
impl Freeze for FileEntry
impl RefUnwindSafe for FileEntry
impl Send for FileEntry
impl Sync for FileEntry
impl Unpin for FileEntry
impl UnsafeUnpin for FileEntry
impl UnwindSafe for FileEntry
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