binstalk_downloader::download

Trait TarEntry

Source
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§

Source

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.

Source

fn size(&self) -> Result<u64>

Source

fn entry_type(&self) -> TarEntryType

Implementations on Foreign Types§

Source§

impl<R: AsyncRead + Unpin + Send + Sync> TarEntry for Entry<R>

Source§

fn path(&self) -> Result<Cow<'_, Path>>

Source§

fn size(&self) -> Result<u64>

Source§

fn entry_type(&self) -> TarEntryType

Source§

impl<T: TarEntry + ?Sized> TarEntry for &mut T

Source§

fn path(&self) -> Result<Cow<'_, Path>>

Source§

fn size(&self) -> Result<u64>

Source§

fn entry_type(&self) -> TarEntryType

Implementors§