#[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<UpcallTargetSpawnOption> for UpcallTargetSpawnOption
impl PartialEq<UpcallTargetSpawnOption> for UpcallTargetSpawnOption
source§fn eq(&self, other: &UpcallTargetSpawnOption) -> bool
fn eq(&self, other: &UpcallTargetSpawnOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UpcallTargetSpawnOption> for UpcallTargetSpawnOption
impl PartialOrd<UpcallTargetSpawnOption> for UpcallTargetSpawnOption
source§fn partial_cmp(&self, other: &UpcallTargetSpawnOption) -> Option<Ordering>
fn partial_cmp(&self, other: &UpcallTargetSpawnOption) -> 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 UpcallTargetSpawnOption
impl Eq for UpcallTargetSpawnOption
impl StructuralEq for UpcallTargetSpawnOption
impl StructuralPartialEq for UpcallTargetSpawnOption
Auto Trait Implementations§
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