pub struct Error {
pub code: OrtErrorCode,
/* private fields */
}Fields§
§code: OrtErrorCodeImplementations§
Source§impl Error
impl Error
pub fn new(code: OrtErrorCode, message: impl Into<String>) -> Self
pub fn into_sys(self) -> OrtStatusPtr
pub fn new_sys(code: OrtErrorCode, message: impl Into<String>) -> OrtStatusPtr
pub fn message(&self) -> &str
pub fn message_ptr(&self) -> *const c_char
pub unsafe fn cast_from_sys<'e>(status: *const OrtStatus) -> &'e Error
pub unsafe fn consume_sys(status: *mut OrtStatus) -> Box<Error>
Trait Implementations§
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