Struct debian_packaging::io::PathMappingDataResolver [−][src]
pub struct PathMappingDataResolver<R> { /* fields omitted */ }Expand description
A DataResolver that maintains a path translation table and transparently redirects lookups.
Implementations
Construct a new instance that forwards to a source DataResolver.
Register a mapping of 1 path to another.
Future looks up from_path will resolve to to_path.
Trait Implementations
Get the content of a relative path as an async reader. Read more
fn get_path_with_digest_verification<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
expected_size: u64,
expected_digest: ContentDigest
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn AsyncRead + Send>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_path_with_digest_verification<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
expected_size: u64,
expected_digest: ContentDigest
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn AsyncRead + Send>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Obtain a reader that performs content integrity checking. Read more
Get the content of a relative path with decompression transparently applied.
fn get_path_decoded_with_digest_verification<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
compression: Compression,
expected_size: u64,
expected_digest: ContentDigest
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn AsyncRead + Send>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_path_decoded_with_digest_verification<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
compression: Compression,
expected_size: u64,
expected_digest: ContentDigest
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn AsyncRead + Send>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Like Self::get_path_decoded() but also perform content integrity verification. Read more
Auto Trait Implementations
impl<R> RefUnwindSafe for PathMappingDataResolver<R> where
R: RefUnwindSafe,
impl<R> Send for PathMappingDataResolver<R> where
R: Send,
impl<R> Sync for PathMappingDataResolver<R> where
R: Sync,
impl<R> Unpin for PathMappingDataResolver<R> where
R: Unpin,
impl<R> UnwindSafe for PathMappingDataResolver<R> where
R: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
