Enum sgx_oc::linux::ocall::OCallError
source · pub enum OCallError {
SgxError(SgxStatus),
OsError(i32),
GaiError(i32),
CustomError(&'static str),
}
Variants§
Implementations§
source§impl 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
source§impl OCallError
impl OCallError
pub fn error_description(&self) -> String
Trait Implementations§
source§impl Clone for OCallError
impl Clone for OCallError
source§fn clone(&self) -> OCallError
fn clone(&self) -> OCallError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OCallError
impl Debug for OCallError
source§impl Display for OCallError
impl Display for OCallError
source§impl Error for OCallError
impl Error for OCallError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl From<&'static str> for OCallError
impl From<&'static str> for OCallError
source§fn from(err: &'static str) -> OCallError
fn from(err: &'static str) -> OCallError
Converts to this type from the input type.
source§impl From<SgxStatus> for OCallError
impl From<SgxStatus> for OCallError
source§fn from(errno: SgxStatus) -> OCallError
fn from(errno: SgxStatus) -> OCallError
Converts to this type from the input type.
source§impl PartialEq for OCallError
impl PartialEq for OCallError
source§fn eq(&self, other: &OCallError) -> bool
fn eq(&self, other: &OCallError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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