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§
Sourcefn 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<'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
Sourcefn 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_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
Sourcefn 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,
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.