pub struct PreviousContextBinding { /* private fields */ }Expand description
Opaque previous-context binding consumed by the incoming switch tail.
Implementations§
Source§impl PreviousContextBinding
impl PreviousContextBinding
Sourcepub unsafe fn finish(
self,
previous: Pin<&ExecutionContextHeader>,
) -> Result<(), ContextSwitchError>
pub unsafe fn finish( self, previous: Pin<&ExecutionContextHeader>, ) -> Result<(), ContextSwitchError>
Withdraws the exact previous binding after architecture registers have switched to the incoming context.
§Errors
Returns ContextSwitchError::PreviousContextMismatch if previous
differs from the prepared context, or
ContextSwitchError::StalePreviousBinding for an obsolete tail.
§Safety
The incoming switch tail must be the sole owner of this token and the previous context allocation must remain pinned and alive.
Trait Implementations§
Auto Trait Implementations§
impl !Send for PreviousContextBinding
impl !Sync for PreviousContextBinding
impl Freeze for PreviousContextBinding
impl RefUnwindSafe for PreviousContextBinding
impl Unpin for PreviousContextBinding
impl UnsafeUnpin for PreviousContextBinding
impl UnwindSafe for PreviousContextBinding
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