pub struct PreemptionResult {
pub success: bool,
pub saved_state: Option<PreemptionState>,
pub freed_resources: AllocatedResources,
}Expand description
Preemption result
Fields§
§success: boolWhether preemption was successful
saved_state: Option<PreemptionState>Saved state for resumption (if any)
freed_resources: AllocatedResourcesResources freed by preemption
Trait Implementations§
Source§impl Clone for PreemptionResult
impl Clone for PreemptionResult
Source§fn clone(&self) -> PreemptionResult
fn clone(&self) -> PreemptionResult
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PreemptionResult
impl RefUnwindSafe for PreemptionResult
impl Send for PreemptionResult
impl Sync for PreemptionResult
impl Unpin for PreemptionResult
impl UnsafeUnpin for PreemptionResult
impl UnwindSafe for PreemptionResult
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