Trait PayloadSource
pub trait PayloadSource:
Read
+ Seek
+ Send {
// Required methods
fn total_size(&self) -> u64;
fn extents(&self) -> &[Extent];
// Provided methods
fn bind_snapshot(&mut self, snapshot: &SourceSnapshot) -> Result<(), Error> { ... }
fn is_sparse(&self) -> bool { ... }
fn opened_with_noatime(&self) -> bool { ... }
fn finish(&mut self) -> Result<Vec<String>, Error> { ... }
}Expand description
Abstract streaming provider for file payload data and extents.
Required Methods§
fn total_size(&self) -> u64
fn total_size(&self) -> u64
Total logical byte size of the payload.
Provided Methods§
fn bind_snapshot(&mut self, snapshot: &SourceSnapshot) -> Result<(), Error>
fn bind_snapshot(&mut self, snapshot: &SourceSnapshot) -> Result<(), Error>
Binds this reader to the physical state observed before metadata capture.
fn opened_with_noatime(&self) -> bool
fn opened_with_noatime(&self) -> bool
Whether this payload source was opened without modifying access time
(e.g. via O_NOATIME on Linux or in-memory cursor).