pub struct Error { /* private fields */ }
Expand description
Error reference class
Implementations§
Source§impl Error
impl Error
pub fn new(kind: ErrorKind<'_>, message: &str, traceback: &str) -> Self
Sourcepub fn from_raised() -> Self
pub fn from_raised() -> Self
Sourcepub fn set_raised(error: &Self)
pub fn set_raised(error: &Self)
Sourcepub fn traceback_most_recent_call_last(&self) -> String
pub fn traceback_most_recent_call_last(&self) -> String
Get the traceback of the error in the order of most recent call last
§Returns
The traceback of the error
Sourcepub fn with_appended_backtrace(this: Self, backtrace: &str) -> Self
pub fn with_appended_backtrace(this: Self, backtrace: &str) -> Self
Trait Implementations§
Source§impl AnyCompatible for Error
impl AnyCompatible for Error
Source§unsafe fn copy_to_any_view(src: &Self, data: &mut TVMFFIAny)
unsafe fn copy_to_any_view(src: &Self, data: &mut TVMFFIAny)
the value to copy to TVMFFIAny
unsafe fn check_any_strict(data: &TVMFFIAny) -> bool
Source§unsafe fn copy_from_any_view_after_check(data: &TVMFFIAny) -> Self
unsafe fn copy_from_any_view_after_check(data: &TVMFFIAny) -> Self
Copy value from TVMFFIAny after checking
caller must ensure that the value is compatible with the type
Source§unsafe fn move_to_any(src: Self, data: &mut TVMFFIAny)
unsafe fn move_to_any(src: Self, data: &mut TVMFFIAny)
consume the value to move to Any
Source§unsafe fn move_from_any_after_check(data: &mut TVMFFIAny) -> Self
unsafe fn move_from_any_after_check(data: &mut TVMFFIAny) -> Self
the value to move from TVMFFIAny
NOTE: pay very careful attention to avoid memory leak! Read more
Source§unsafe fn try_cast_from_any_view(data: &TVMFFIAny) -> Result<Self, ()>
unsafe fn try_cast_from_any_view(data: &TVMFFIAny) -> Result<Self, ()>
try to cast the value from AnyView
Source§fn get_mismatch_type_info(data: &TVMFFIAny) -> String
fn get_mismatch_type_info(data: &TVMFFIAny) -> String
Get the type key of a type when TryCastFromAnyView fails.
Source§impl<'a> ArgIntoRef for &'a Error
impl<'a> ArgIntoRef for &'a Error
Source§impl Error for Error
impl Error for Error
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<'a> IntoArgHolder for &'a Error
impl<'a> IntoArgHolder for &'a Error
Source§impl IntoArgHolder for Error
impl IntoArgHolder for Error
Source§impl ObjectRefCore for Error
impl ObjectRefCore for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl !Send for Error
impl !Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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