Enum landlock::CompatError
source · #[non_exhaustive]
pub enum CompatError<T>where
T: Access,{
PathBeneath(PathBeneathError),
Access(AccessError<T>),
}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.
PathBeneath(PathBeneathError)
Access(AccessError<T>)
Trait Implementations§
source§impl<T> Display for CompatError<T>where
T: Access,
AccessError<T>: Display,
impl<T> Display for CompatError<T>where
T: Access,
AccessError<T>: Display,
source§impl<T> Error for CompatError<T>where
T: Access,
AccessError<T>: Error,
Self: Debug + Display,
impl<T> Error for CompatError<T>where
T: Access,
AccessError<T>: Error,
Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<AccessError<T>> for CompatError<T>where
T: Access,
impl<T> From<AccessError<T>> for CompatError<T>where
T: Access,
source§fn from(source: AccessError<T>) -> Self
fn from(source: AccessError<T>) -> Self
Converts to this type from the input type.
source§impl<T> From<CompatError<T>> for AddRuleError<T>where
T: Access,
impl<T> From<CompatError<T>> for AddRuleError<T>where
T: Access,
source§fn from(source: CompatError<T>) -> Self
fn from(source: CompatError<T>) -> Self
Converts to this type from the input type.
source§impl<T> From<CompatError<T>> for HandleAccessError<T>where
T: Access,
impl<T> From<CompatError<T>> for HandleAccessError<T>where
T: Access,
source§fn from(source: CompatError<T>) -> Self
fn from(source: CompatError<T>) -> Self
Converts to this type from the input type.
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.