pub trait TarEntry:
AsyncRead
+ Send
+ Sync
+ Unpin
+ Debug {
// Required methods
fn path(&self) -> Result<Cow<'_, Path>>;
fn size(&self) -> Result<u64>;
fn entry_type(&self) -> TarEntryType;
}
Required Methods§
Sourcefn path(&self) -> Result<Cow<'_, Path>>
fn path(&self) -> Result<Cow<'_, Path>>
Returns the path name for this entry.
This method may fail if the pathname is not valid Unicode and this is called on a Windows platform.
Note that this function will convert any \
characters to
directory separators.