Struct secgate::GateCallInfo
source · #[repr(C)]pub struct GateCallInfo { /* private fields */ }
Implementations§
source§impl GateCallInfo
impl GateCallInfo
sourcepub fn with_alloca<F, R>(thread_id: ObjID, src_ctx: ObjID, f: F) -> Rwhere
F: FnOnce(&mut Self) -> R,
pub fn with_alloca<F, R>(thread_id: ObjID, src_ctx: ObjID, f: F) -> Rwhere F: FnOnce(&mut Self) -> R,
Allocate a new GateCallInfo on the stack for the closure.
sourcepub fn source_context(&self) -> Option<ObjID>
pub fn source_context(&self) -> Option<ObjID>
Get the ID of the source context, or None if the call was not cross-context.
sourcepub fn canonicalize(self) -> Self
pub fn canonicalize(self) -> Self
Ensures that the data is filled out (may read thread ID from kernel if necessary).
Trait Implementations§
source§impl Clone for GateCallInfo
impl Clone for GateCallInfo
source§fn clone(&self) -> GateCallInfo
fn clone(&self) -> GateCallInfo
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 GateCallInfo
impl Debug for GateCallInfo
source§impl Hash for GateCallInfo
impl Hash for GateCallInfo
source§impl Ord for GateCallInfo
impl Ord for GateCallInfo
source§fn cmp(&self, other: &GateCallInfo) -> Ordering
fn cmp(&self, other: &GateCallInfo) -> 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 PartialEq<GateCallInfo> for GateCallInfo
impl PartialEq<GateCallInfo> for GateCallInfo
source§fn eq(&self, other: &GateCallInfo) -> bool
fn eq(&self, other: &GateCallInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<GateCallInfo> for GateCallInfo
impl PartialOrd<GateCallInfo> for GateCallInfo
source§fn partial_cmp(&self, other: &GateCallInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &GateCallInfo) -> 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 Copy for GateCallInfo
impl Eq for GateCallInfo
impl StructuralEq for GateCallInfo
impl StructuralPartialEq for GateCallInfo
Auto Trait Implementations§
impl Crossing for GateCallInfo
impl ObjSafe for GateCallInfo
impl RefUnwindSafe for GateCallInfo
impl Send for GateCallInfo
impl Sync for GateCallInfo
impl Unpin for GateCallInfo
impl UnwindSafe for GateCallInfo
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.