#[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> Debug for CompatError<T>
impl<T> Debug for CompatError<T>
source§impl<T> Display for CompatError<T>
impl<T> Display for CompatError<T>
source§impl<T> Error for CompatError<T>
impl<T> Error for CompatError<T>
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<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.
Auto Trait Implementations§
impl<T> Freeze for CompatError<T>where
<T as RawBitFlags>::Numeric: Freeze,
impl<T> !RefUnwindSafe for CompatError<T>
impl<T> Send for CompatError<T>
impl<T> Sync for CompatError<T>
impl<T> Unpin for CompatError<T>
impl<T> !UnwindSafe for CompatError<T>
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