pub struct ExtentPair {
pub src_path: PathBuf,
pub dst_path: PathBuf,
pub src_offset: u64,
pub dst_offset: u64,
pub length: Option<u64>,
}Expand description
One extent to copy, mirroring struct tc_extent_pair.
Fields§
§src_path: PathBuf§dst_path: PathBuf§src_offset: u64§dst_offset: u64§length: Option<u64>Bytes to copy; None means “from src_offset to end of file”.
Implementations§
Source§impl ExtentPair
impl ExtentPair
Sourcepub fn new(
src_path: &str,
src_offset: u64,
dst_path: &str,
dst_offset: u64,
length: Option<u64>,
) -> ExtentPair
pub fn new( src_path: &str, src_offset: u64, dst_path: &str, dst_offset: u64, length: Option<u64>, ) -> ExtentPair
tc_fill_extent_pair().
Sourcepub fn from_os_paths(
src_path: &Path,
src_offset: u64,
dst_path: &Path,
dst_offset: u64,
length: Option<u64>,
) -> ExtentPair
pub fn from_os_paths( src_path: &Path, src_offset: u64, dst_path: &Path, dst_offset: u64, length: Option<u64>, ) -> ExtentPair
Construct from native paths.
Trait Implementations§
Source§impl Clone for ExtentPair
impl Clone for ExtentPair
Source§fn clone(&self) -> ExtentPair
fn clone(&self) -> ExtentPair
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtentPair
impl Debug for ExtentPair
impl Eq for ExtentPair
Source§impl PartialEq for ExtentPair
impl PartialEq for ExtentPair
impl StructuralPartialEq for ExtentPair
Auto Trait Implementations§
impl Freeze for ExtentPair
impl RefUnwindSafe for ExtentPair
impl Send for ExtentPair
impl Sync for ExtentPair
impl Unpin for ExtentPair
impl UnsafeUnpin for ExtentPair
impl UnwindSafe for ExtentPair
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more