pub enum DocumentState {
Missing,
Unreadable {
reason: String,
},
Empty {
version: B3Hash,
format: Format,
},
Held(Box<HeldDocument>),
}Expand description
What stands at an address in the tree.
Variants§
Missing
No file is at this address; a save would create one.
Unreadable
Something is here and will not read - a directory, a file this process may not open - in the operating system’s own words.
Empty
A file with no bytes. It has a version all the same, because an empty file is something a save can be made on.
Held(Box<HeldDocument>)
A file with bytes.
Trait Implementations§
Source§impl Clone for DocumentState
impl Clone for DocumentState
Source§impl Debug for DocumentState
impl Debug for DocumentState
Source§impl<'de> Deserialize<'de> for DocumentState
impl<'de> Deserialize<'de> for DocumentState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DocumentState
Source§impl PartialEq for DocumentState
impl PartialEq for DocumentState
Source§impl Serialize for DocumentState
impl Serialize for DocumentState
impl StructuralPartialEq for DocumentState
Auto Trait Implementations§
impl Freeze for DocumentState
impl RefUnwindSafe for DocumentState
impl Send for DocumentState
impl Sync for DocumentState
impl Unpin for DocumentState
impl UnsafeUnpin for DocumentState
impl UnwindSafe for DocumentState
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