#[repr(C)]pub enum UpcallTargetSpawnOption {
DefaultAbort,
Inherit,
SetTo(UpcallTarget),
}
Variants§
DefaultAbort
Set all sync event handlers to abort by default. Entry addresses will be zero, and upcalls will not be issued.
Inherit
Inherit the upcall target entry address. All supervisor fields are cleared.
SetTo(UpcallTarget)
Set the upcall target directly. The following conditions must be met:
- The super_ctx field holds the ID of the current thread’s active context (prevents priv escalation).
- The super_entry_address is at most r-x, and at least –x in the super_ctx.
- The super_thread_pointer is exactly rw- in the super_ctx.
- The super_stack_pointer is exactly rw- in the super_ctx.
Trait Implementations§
source§impl Clone for UpcallTargetSpawnOption
impl Clone for UpcallTargetSpawnOption
source§fn clone(&self) -> UpcallTargetSpawnOption
fn clone(&self) -> UpcallTargetSpawnOption
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 UpcallTargetSpawnOption
impl Debug for UpcallTargetSpawnOption
source§impl Ord for UpcallTargetSpawnOption
impl Ord for UpcallTargetSpawnOption
source§fn cmp(&self, other: &UpcallTargetSpawnOption) -> Ordering
fn cmp(&self, other: &UpcallTargetSpawnOption) -> 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 for UpcallTargetSpawnOption
impl PartialEq for UpcallTargetSpawnOption
source§impl PartialOrd for UpcallTargetSpawnOption
impl PartialOrd for UpcallTargetSpawnOption
impl Copy for UpcallTargetSpawnOption
impl Eq for UpcallTargetSpawnOption
impl StructuralPartialEq for UpcallTargetSpawnOption
Auto Trait Implementations§
impl Freeze for UpcallTargetSpawnOption
impl ObjSafe for UpcallTargetSpawnOption
impl RefUnwindSafe for UpcallTargetSpawnOption
impl Send for UpcallTargetSpawnOption
impl Sync for UpcallTargetSpawnOption
impl Unpin for UpcallTargetSpawnOption
impl UnwindSafe for UpcallTargetSpawnOption
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.