#[non_exhaustive]pub enum InputReason {
UnexpectedData,
VersionOnCreate,
MountRoot,
MoveIntoSelf,
ReadOnlyUnderReadWrite,
DuplicateRoot,
}Expand description
Why an argument (not the path) was refused. A closed set of typed reasons, so an error can be carried over a wire and rebuilt on the far side without free text.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnexpectedData
Data was given to an operation that takes none (Remove, MakeDir, RenameWithinMount).
VersionOnCreate
if_version was given to an operation that creates (CreateExclusive, MakeDir): there is nothing to compare.
MountRoot
The mount root has no parent: it cannot be removed, renamed, or be the destination of a rename.
MoveIntoSelf
A directory cannot be moved into itself.
ReadOnlyUnderReadWrite
A ReadOnly mount nested under a ReadWrite one: the parent mount could rename the directory the nested mount
is meant to protect, and write through the new name. Mount read-only trees outside any writable mount.
DuplicateRoot
Two mounts are over the same host directory (their backends report the same root identity). Access is enforced per mount, so a write through one would change what the other reads, whatever grants they were given.
Trait Implementations§
Source§impl Clone for InputReason
impl Clone for InputReason
impl Copy for InputReason
Source§impl Debug for InputReason
impl Debug for InputReason
impl Eq for InputReason
Source§impl Hash for InputReason
impl Hash for InputReason
Source§impl PartialEq for InputReason
impl PartialEq for InputReason
impl StructuralPartialEq for InputReason
Auto Trait Implementations§
impl Forget for InputReason
impl Freeze for InputReason
impl Move for InputReason
impl RefUnwindSafe for InputReason
impl Send for InputReason
impl Sync for InputReason
impl Unpin for InputReason
impl UnsafeUnpin for InputReason
impl UnwindSafe for InputReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more