pub struct FileAssociation {
pub path: PathBuf,
pub mtime_ms: i64,
pub hash: u64,
pub content_hash: u64,
}Expand description
Association between a buffer and an imported/exported filesystem path.
Thread ownership: stored on crate::Buffer and mutated only by the
editor core thread. Other threads receive cloned snapshots of this value.
Fields§
§path: PathBufPath this buffer saves back to.
mtime_ms: i64Last observed file modification time, in Unix milliseconds.
hash: u64FNV-1a hash of the last imported/saved raw file bytes.
content_hash: u64FNV-1a hash of the decoded text content last imported/saved.
Implementations§
Trait Implementations§
Source§impl Clone for FileAssociation
impl Clone for FileAssociation
Source§impl Debug for FileAssociation
impl Debug for FileAssociation
impl Eq for FileAssociation
Source§impl PartialEq for FileAssociation
impl PartialEq for FileAssociation
impl StructuralPartialEq for FileAssociation
Auto Trait Implementations§
impl Forget for FileAssociation
impl Freeze for FileAssociation
impl Move for FileAssociation
impl RefUnwindSafe for FileAssociation
impl Send for FileAssociation
impl Sync for FileAssociation
impl Unpin for FileAssociation
impl UnsafeUnpin for FileAssociation
impl UnwindSafe for FileAssociation
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