pub enum Located<T> {
Here(T),
Elsewhere(FileRef),
Gone,
}Expand description
What a read of a file here finds in one committed state: its bytes here while its record keeps it on this device only, or else that record, or no record (§17.7).
Variants§
Here(T)
The record keeps the file on this device only: its bytes here.
Elsewhere(FileRef)
The record as the read found it, which doesn’t keep the file on this device only: the file is stored, its bytes in the cache or storage, or it is on another device only. A file whose upload this device finished since a reference to it was taken is stored.
Gone
This device has no record of the file.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Located<T>where
T: Freeze,
impl<T> RefUnwindSafe for Located<T>where
T: RefUnwindSafe,
impl<T> Send for Located<T>where
T: Send,
impl<T> Sync for Located<T>where
T: Sync,
impl<T> Unpin for Located<T>where
T: Unpin,
impl<T> UnsafeUnpin for Located<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Located<T>where
T: UnwindSafe,
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