Enum rune::runtime::AccessError
source · #[non_exhaustive]pub enum AccessError {
UnexpectedType {
expected: RawStr,
actual: RawStr,
},
NotAccessibleRef {
error: NotAccessibleRef,
},
NotAccessibleMut {
error: NotAccessibleMut,
},
NotAccessibleTake {
error: NotAccessibleTake,
},
AnyObjError {
error: AnyObjError,
},
}
Expand description
An error raised while downcasting.
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.
UnexpectedType
NotAccessibleRef
Fields
§
error: NotAccessibleRef
NotAccessibleMut
Fields
§
error: NotAccessibleMut
NotAccessibleTake
Fields
§
error: NotAccessibleTake
AnyObjError
Fields
§
error: AnyObjError
Trait Implementations§
source§impl Debug for AccessError
impl Debug for AccessError
source§impl Display for AccessError
impl Display for AccessError
source§impl Error for AccessError
Available on crate feature std
only.
impl Error for AccessError
Available on crate feature
std
only.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 From<AnyObjError> for AccessError
impl From<AnyObjError> for AccessError
source§fn from(source: AnyObjError) -> Self
fn from(source: AnyObjError) -> Self
Converts to this type from the input type.
source§impl From<NotAccessibleMut> for AccessError
impl From<NotAccessibleMut> for AccessError
source§fn from(error: NotAccessibleMut) -> Self
fn from(error: NotAccessibleMut) -> Self
Converts to this type from the input type.
source§impl From<NotAccessibleRef> for AccessError
impl From<NotAccessibleRef> for AccessError
source§fn from(error: NotAccessibleRef) -> Self
fn from(error: NotAccessibleRef) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for AccessError
impl Send for AccessError
impl Sync for AccessError
impl Unpin for AccessError
impl UnwindSafe for AccessError
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