pub enum UserReturnIrqPolicy {
Inherit,
Enable,
Disable,
}Expand description
Policy for whether user-mode should run with IRQs enabled immediately after
returning from the kernel (e.g. sret/eret).
Variants§
Inherit
Do not change the interrupt state; honor the trapframe/arch default.
Enable
Ensure IRQs are enabled right after returning to user mode.
Disable
Ensure IRQs are disabled right after returning to user mode.
Trait Implementations§
Source§impl Clone for UserReturnIrqPolicy
impl Clone for UserReturnIrqPolicy
Source§fn clone(&self) -> UserReturnIrqPolicy
fn clone(&self) -> UserReturnIrqPolicy
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserReturnIrqPolicy
impl Debug for UserReturnIrqPolicy
Source§impl PartialEq for UserReturnIrqPolicy
impl PartialEq for UserReturnIrqPolicy
impl Copy for UserReturnIrqPolicy
impl Eq for UserReturnIrqPolicy
impl StructuralPartialEq for UserReturnIrqPolicy
Auto Trait Implementations§
impl Freeze for UserReturnIrqPolicy
impl RefUnwindSafe for UserReturnIrqPolicy
impl Send for UserReturnIrqPolicy
impl Sync for UserReturnIrqPolicy
impl Unpin for UserReturnIrqPolicy
impl UnwindSafe for UserReturnIrqPolicy
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§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.