pub enum Expected {
Bytes(Vec<u8>),
Absent,
}Expand description
What one expectation says the tree holds at a path,
checked against the tree as it stands when apply
begins — before the set writes anything.
Variants§
Bytes(Vec<u8>)
The path holds exactly these bytes, read as the backend reads — which is through a symbolic link, if one stands there.
Absent
Nothing is at the path: no file, no directory, and no link — a dangling link is an entry, and counts as occupied.
Trait Implementations§
impl Eq for Expected
impl StructuralPartialEq for Expected
Auto Trait Implementations§
impl Freeze for Expected
impl RefUnwindSafe for Expected
impl Send for Expected
impl Sync for Expected
impl Unpin for Expected
impl UnsafeUnpin for Expected
impl UnwindSafe for Expected
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