pub enum OCallError {
SgxError(SgxStatus),
OsError(i32),
GaiError(i32),
CustomError(&'static str),
}
Variants
SgxError(SgxStatus)
OsError(i32)
GaiError(i32)
CustomError(&'static str)
Implementations
sourceimpl OCallError
impl OCallError
pub fn from_sgx_error(errno: SgxStatus) -> Self
pub fn from_os_error(errno: i32) -> Self
pub fn from_gai_error(err: i32) -> Self
pub fn from_custom_error(err: &'static str) -> Self
pub fn equal_to_sgx_error(&self, other: SgxStatus) -> bool
pub fn equal_to_os_error(&self, other: i32) -> bool
pub fn equal_to_gai_error(&self, other: i32) -> bool
sourceimpl OCallError
impl OCallError
pub fn error_description(&self) -> String
Trait Implementations
sourceimpl Clone for OCallError
impl Clone for OCallError
sourcefn clone(&self) -> OCallError
fn clone(&self) -> OCallError
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OCallError
impl Debug for OCallError
sourceimpl Display for OCallError
impl Display for OCallError
sourceimpl Error for OCallError
impl Error for OCallError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl From<&'static str> for OCallError
impl From<&'static str> for OCallError
sourcefn from(err: &'static str) -> OCallError
fn from(err: &'static str) -> OCallError
Converts to this type from the input type.
sourceimpl From<SgxStatus> for OCallError
impl From<SgxStatus> for OCallError
sourcefn from(errno: SgxStatus) -> OCallError
fn from(errno: SgxStatus) -> OCallError
Converts to this type from the input type.
sourceimpl PartialEq<OCallError> for OCallError
impl PartialEq<OCallError> for OCallError
sourcefn eq(&self, other: &OCallError) -> bool
fn eq(&self, other: &OCallError) -> bool
impl Copy for OCallError
impl Eq for OCallError
impl StructuralEq for OCallError
impl StructuralPartialEq for OCallError
Auto Trait Implementations
impl RefUnwindSafe for OCallError
impl Send for OCallError
impl Sync for OCallError
impl Unpin for OCallError
impl UnwindSafe for OCallError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more