Skip to main content

LfsSmudge

Trait LfsSmudge 

Source
pub trait LfsSmudge {
    // Required methods
    fn smudge_lfs<'life0, 'life1, 'async_trait>(
        &'life0 self,
        pointer: &'life1 LfsPointer,
    ) -> Pin<Box<dyn Future<Output = Git2DBResult<Vec<u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn smudge_lfs_to_file<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        pointer: &'life1 LfsPointer,
        path: &'life2 Path,
    ) -> Pin<Box<dyn Future<Output = Git2DBResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn smudge_lfs_validated<'life0, 'life1, 'async_trait>(
        &'life0 self,
        pointer: &'life1 LfsPointer,
    ) -> Pin<Box<dyn Future<Output = Git2DBResult<Vec<u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Extension trait for XetStorage - adds LFS capabilities

This allows using xet.smudge_lfs(&pointer) syntax for LFS operations.

Required Methods§

Source

fn smudge_lfs<'life0, 'life1, 'async_trait>( &'life0 self, pointer: &'life1 LfsPointer, ) -> Pin<Box<dyn Future<Output = Git2DBResult<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Smudge LFS pointer to memory

Source

fn smudge_lfs_to_file<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, pointer: &'life1 LfsPointer, path: &'life2 Path, ) -> Pin<Box<dyn Future<Output = Git2DBResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Smudge LFS pointer directly to file

Source

fn smudge_lfs_validated<'life0, 'life1, 'async_trait>( &'life0 self, pointer: &'life1 LfsPointer, ) -> Pin<Box<dyn Future<Output = Git2DBResult<Vec<u8>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Smudge LFS pointer with size and SHA256 validation

This provides defense-in-depth validation against potential XET CAS bugs.

Implementors§