#[non_exhaustive]pub enum PathBeneathError {
StatCall {
source: Error,
},
DirectoryAccess {
access: BitFlags<AccessFs>,
incompatible: BitFlags<AccessFs>,
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
StatCall
To check that access-rights are consistent with a file descriptor, a call to
RulesetCreatedAttr::add_rule()
looks at the file type with an fstat()
system call.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
DirectoryAccess
This error is returned by
RulesetCreatedAttr::add_rule()
if the related PathBeneath object is not set to best-effort,
and if its allowed access-rights contain directory-only ones
whereas the file descriptor doesn’t point to a directory.
Trait Implementations§
source§impl Debug for PathBeneathError
impl Debug for PathBeneathError
source§impl Display for PathBeneathError
impl Display for PathBeneathError
source§impl Error for PathBeneathError
impl Error for PathBeneathError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<T> From<PathBeneathError> for CompatError<T>where
T: Access,
impl<T> From<PathBeneathError> for CompatError<T>where
T: Access,
source§fn from(source: PathBeneathError) -> Self
fn from(source: PathBeneathError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PathBeneathError
impl !RefUnwindSafe for PathBeneathError
impl Send for PathBeneathError
impl Sync for PathBeneathError
impl Unpin for PathBeneathError
impl !UnwindSafe for PathBeneathError
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