pub enum RustealError {
ObjectDestroyed,
InvalidCast,
PropertyNotFound(String),
FunctionNotFound(String),
TypeMismatch,
NullArgument,
IndexOutOfRange,
InvalidOperation(String),
Internal(String),
BufferTooSmall,
}Expand description
Rich error type for Rusteal operations.
Variants§
ObjectDestroyed
InvalidCast
PropertyNotFound(String)
FunctionNotFound(String)
TypeMismatch
NullArgument
IndexOutOfRange
InvalidOperation(String)
Internal(String)
BufferTooSmall
Trait Implementations§
Source§impl Debug for RustealError
impl Debug for RustealError
Source§impl Display for RustealError
impl Display for RustealError
Source§impl Error for RustealError
impl Error for RustealError
1.30.0 · 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 From<RustealErrorCode> for RustealError
impl From<RustealErrorCode> for RustealError
Source§fn from(code: RustealErrorCode) -> Self
fn from(code: RustealErrorCode) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RustealError
impl RefUnwindSafe for RustealError
impl Send for RustealError
impl Sync for RustealError
impl Unpin for RustealError
impl UnsafeUnpin for RustealError
impl UnwindSafe for RustealError
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