pub struct CacheFfiError(String);Expand description
Owned error raised through [ocaml::Error::Error] on the cached-index
FFI paths.
ocaml-rs raises that variant by calling caml_failwith on the boxed
error’s Debug rendering, so Debug here must produce the plain
message — boxing the String directly would Debug-quote it and OCaml
would see Failure "\"caml_...: ...\"". Unlike ocaml::Error::Message
(which takes a &'static str and previously forced a Box::leak per
call), this owns its message and is freed when the error drops.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Debug for CacheFfiError
impl Debug for CacheFfiError
Source§impl Display for CacheFfiError
impl Display for CacheFfiError
Source§impl Error for CacheFfiError
impl Error for CacheFfiError
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()
Auto Trait Implementations§
impl Freeze for CacheFfiError
impl RefUnwindSafe for CacheFfiError
impl Send for CacheFfiError
impl Sync for CacheFfiError
impl Unpin for CacheFfiError
impl UnsafeUnpin for CacheFfiError
impl UnwindSafe for CacheFfiError
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