pub struct PreemptBlockMode<T> {
pub priority_mode: bool,
pub transfer: Option<PreemptBlockTransfer<T>>,
pub remove_mode: bool,
}Expand description
The Preempt block mode.
Fields§
§priority_mode: boolThe Priority mode; otherwise, the Interrupt mode.
transfer: Option<PreemptBlockTransfer<T>>Where to transfer the preempted transact, passing in the remaining time from the process holding computation such as the Advance block.
remove_mode: boolThe Remove mode.
Trait Implementations§
Source§impl<T: Clone> Clone for PreemptBlockMode<T>
impl<T: Clone> Clone for PreemptBlockMode<T>
Source§fn clone(&self) -> PreemptBlockMode<T>
fn clone(&self) -> PreemptBlockMode<T>
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 moreSource§impl<T> From<FacilityPreemptMode<T>> for PreemptBlockMode<T>where
T: Clone + 'static,
impl<T> From<FacilityPreemptMode<T>> for PreemptBlockMode<T>where
T: Clone + 'static,
Source§fn from(mode: FacilityPreemptMode<T>) -> Self
fn from(mode: FacilityPreemptMode<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<PreemptBlockMode<T>> for FacilityPreemptMode<T>where
T: Clone + 'static,
impl<T> From<PreemptBlockMode<T>> for FacilityPreemptMode<T>where
T: Clone + 'static,
Source§fn from(mode: PreemptBlockMode<T>) -> Self
fn from(mode: PreemptBlockMode<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for PreemptBlockMode<T>
impl<T> !RefUnwindSafe for PreemptBlockMode<T>
impl<T> !Send for PreemptBlockMode<T>
impl<T> !Sync for PreemptBlockMode<T>
impl<T> Unpin for PreemptBlockMode<T>
impl<T> !UnwindSafe for PreemptBlockMode<T>
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