pub struct DeviceOnlyCopy {
pub file: FileId,
pub location: FileLocation,
pub path: PathBuf,
pub hashes: FileHashes,
}Expand description
A cloud file to make device-only here: its id, the stored bytes its copy was downloaded from, the copy’s path, which becomes the original this device records, and the hashes of the bytes written to it, which a later move to the cloud checks the copy against (§17.3).
Fields§
§file: FileIdThe file.
location: FileLocationThe stored bytes the copy holds.
path: PathBufThe copy, placed in its final path.
hashes: FileHashesThe content hash and chunk hashes of the bytes written to the copy.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceOnlyCopy
impl RefUnwindSafe for DeviceOnlyCopy
impl Send for DeviceOnlyCopy
impl Sync for DeviceOnlyCopy
impl Unpin for DeviceOnlyCopy
impl UnsafeUnpin for DeviceOnlyCopy
impl UnwindSafe for DeviceOnlyCopy
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