pub(super) struct SwitchTarget {
pub(super) old_rsp_ptr: *mut u64,
pub(super) new_rsp_ptr: *const u64,
pub(super) old_fpu_ptr: *mut u8,
pub(super) new_fpu_ptr: *const u8,
pub(super) old_xcr0: u64,
pub(super) new_xcr0: u64,
}Expand description
Information needed to perform a context switch after releasing the lock.
Fields§
§old_rsp_ptr: *mut u64§new_rsp_ptr: *const u64§old_fpu_ptr: *mut u8§new_fpu_ptr: *const u8§old_xcr0: u64§new_xcr0: u64Trait Implementations§
impl Send for SwitchTarget
Auto Trait Implementations§
impl !Sync for SwitchTarget
impl Freeze for SwitchTarget
impl RefUnwindSafe for SwitchTarget
impl Unpin for SwitchTarget
impl UnsafeUnpin for SwitchTarget
impl UnwindSafe for SwitchTarget
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more