Struct dsync_hasezoey::FileChanges
source · pub struct FileChanges {
pub file: PathBuf,
pub status: FileChangesStatus,
}
Fields§
§file: PathBuf
File in question
status: FileChangesStatus
Status of the file
Implementations§
source§impl FileChanges
impl FileChanges
pub fn new<P: AsRef<Path>>(path: P, status: FileChangesStatus) -> Self
sourcepub fn from_markedfile_custom(
marked_file: &MarkedFile,
status_modified: FileChangesStatus,
status_unmodified: FileChangesStatus
) -> Self
pub fn from_markedfile_custom( marked_file: &MarkedFile, status_modified: FileChangesStatus, status_unmodified: FileChangesStatus ) -> Self
Create a new instance based on if the input file is modified or not
using either status_modified
or status_unmodified
Trait Implementations§
source§impl Clone for FileChanges
impl Clone for FileChanges
source§fn clone(&self) -> FileChanges
fn clone(&self) -> FileChanges
Returns a copy of the value. Read more
1.0.0 · 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 FileChanges
impl Debug for FileChanges
source§impl PartialEq<FileChanges> for FileChanges
impl PartialEq<FileChanges> for FileChanges
source§fn eq(&self, other: &FileChanges) -> bool
fn eq(&self, other: &FileChanges) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FileChanges
impl StructuralEq for FileChanges
impl StructuralPartialEq for FileChanges
Auto Trait Implementations§
impl RefUnwindSafe for FileChanges
impl Send for FileChanges
impl Sync for FileChanges
impl Unpin for FileChanges
impl UnwindSafe for FileChanges
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