Skip to main content

EntryExt

Trait EntryExt 

Source
pub trait EntryExt {
    // Required methods
    fn check_path(&self) -> Result<&Path, Error>;
    fn verify<R>(
        &self,
        blake3: Hash,
        size: u64,
        reader: &DataReader<R>,
    ) -> Result<(), Error>
       where R: Sized;
}
Expand description

Handy associated functions for pkgar_core::Entry that depend on std

Required Methods§

Source

fn check_path(&self) -> Result<&Path, Error>

Source

fn verify<R>( &self, blake3: Hash, size: u64, reader: &DataReader<R>, ) -> Result<(), Error>
where R: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl EntryExt for Entry

Source§

fn check_path(&self) -> Result<&Path, Error>

Iterate the components of the path and ensure that there are no non-normal components.

Source§

fn verify<R>( &self, blake3: Hash, size: u64, reader: &DataReader<R>, ) -> Result<(), Error>

Verify is extracted blake3 or compressed size is correct

Implementors§