pub struct RegularFileFilesystemIdentity(/* private fields */);Expand description
Opaque, versioned identity of one single-link regular file.
The serialized value contains only filesystem identity fields, never the source path. Its distinct prefix prevents a persisted directory identity from being accepted as a file identity.
Implementations§
Source§impl RegularFileFilesystemIdentity
impl RegularFileFilesystemIdentity
Sourcepub fn capture(path: &Path) -> Result<Self, DirectoryIdentityError>
pub fn capture(path: &Path) -> Result<Self, DirectoryIdentityError>
Capture the exact single-link regular file currently named by an absolute path.
§Errors
Returns a typed error when the path is not absolute, the final object is not a plain single-link regular file, or the operating system cannot supply a persistent identity.
Trait Implementations§
Source§impl AsRef<str> for RegularFileFilesystemIdentity
impl AsRef<str> for RegularFileFilesystemIdentity
impl Eq for RegularFileFilesystemIdentity
Source§impl Hash for RegularFileFilesystemIdentity
impl Hash for RegularFileFilesystemIdentity
impl StructuralPartialEq for RegularFileFilesystemIdentity
Auto Trait Implementations§
impl Freeze for RegularFileFilesystemIdentity
impl RefUnwindSafe for RegularFileFilesystemIdentity
impl Send for RegularFileFilesystemIdentity
impl Sync for RegularFileFilesystemIdentity
impl Unpin for RegularFileFilesystemIdentity
impl UnsafeUnpin for RegularFileFilesystemIdentity
impl UnwindSafe for RegularFileFilesystemIdentity
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