pub struct Entry {
pub id: String,
pub name: String,
pub size: u64,
pub mime: String,
/* private fields */
}Fields§
§id: String§name: StringName as the receiver sees it; folders keep their structure (“Dir/a.txt”).
size: u64§mime: StringImplementations§
Source§impl Entry
impl Entry
Sourcepub fn open_reader(&self) -> Result<Box<dyn Read + Send>>
pub fn open_reader(&self) -> Result<Box<dyn Read + Send>>
Opens the entry’s content for reading: the file from disk, or the message text.
Each call returns a fresh reader positioned at the start. A file that cannot be opened (moved, deleted, permission) returns the I/O error; nothing is cached, so a changed file is read as it is now.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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