Enum secgate::SecGateReturn
source · #[repr(C, u32)]pub enum SecGateReturn<T> {
Success(T),
PermissionDenied,
CalleePanic,
NoReturnValue,
}
Expand description
Enum of possible return codes, similar to Result, but with specific variants of possible failures of initializing or invoking the secure gate call.
Variants§
Success(T)
Call succeeded, and returned T.
PermissionDenied
Permission was denied for this call.
CalleePanic
The callee panic’d inside the other compartment.
NoReturnValue
The call went through, but no return value was given.
Implementations§
Trait Implementations§
source§impl<T: Clone> Clone for SecGateReturn<T>
impl<T: Clone> Clone for SecGateReturn<T>
source§fn clone(&self) -> SecGateReturn<T>
fn clone(&self) -> SecGateReturn<T>
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<T: Debug> Debug for SecGateReturn<T>
impl<T: Debug> Debug for SecGateReturn<T>
source§impl<T: Hash> Hash for SecGateReturn<T>
impl<T: Hash> Hash for SecGateReturn<T>
source§impl<T: Ord> Ord for SecGateReturn<T>
impl<T: Ord> Ord for SecGateReturn<T>
source§fn cmp(&self, other: &SecGateReturn<T>) -> Ordering
fn cmp(&self, other: &SecGateReturn<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq<SecGateReturn<T>> for SecGateReturn<T>
impl<T: PartialEq> PartialEq<SecGateReturn<T>> for SecGateReturn<T>
source§fn eq(&self, other: &SecGateReturn<T>) -> bool
fn eq(&self, other: &SecGateReturn<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd<SecGateReturn<T>> for SecGateReturn<T>
impl<T: PartialOrd> PartialOrd<SecGateReturn<T>> for SecGateReturn<T>
source§fn partial_cmp(&self, other: &SecGateReturn<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &SecGateReturn<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Copy> Copy for SecGateReturn<T>
impl<T: Crossing + Copy> Crossing for SecGateReturn<T>
impl<T: Eq> Eq for SecGateReturn<T>
impl<T> StructuralEq for SecGateReturn<T>
impl<T> StructuralPartialEq for SecGateReturn<T>
Auto Trait Implementations§
impl<T> ObjSafe for SecGateReturn<T>where T: ObjSafe,
impl<T> RefUnwindSafe for SecGateReturn<T>where T: RefUnwindSafe,
impl<T> Send for SecGateReturn<T>where T: Send,
impl<T> Sync for SecGateReturn<T>where T: Sync,
impl<T> Unpin for SecGateReturn<T>where T: Unpin,
impl<T> UnwindSafe for SecGateReturn<T>where T: UnwindSafe,
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.