Enum task::InheritedStates
pub enum InheritedStates<'t> {
FromTask(&'t Task),
Custom {
mmi: Arc<Mutex<MemoryManagementInfo, DisableIrq>, Global>,
namespace: Arc<CrateNamespace, Global>,
env: Arc<Mutex<Environment, Spin>, Global>,
app_crate: Option<Arc<AppCrateRef, Global>>,
},
}
Expand description
The states used to initialize a new Task
when creating it; see Task::new()
.
Currently, this includes the states given in the InheritedStates::Custom
variant.
Variants§
FromTask(&'t Task)
The new Task
will inherit its states from the enclosed Task
.
Custom
Fields
The new Task
will be initialized with the enclosed custom states.
Trait Implementations§
§impl<'t> From<&'t Task> for InheritedStates<'t>
impl<'t> From<&'t Task> for InheritedStates<'t>
§fn from(task: &'t Task) -> InheritedStates<'t>
fn from(task: &'t Task) -> InheritedStates<'t>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'t> !RefUnwindSafe for InheritedStates<'t>
impl<'t> Send for InheritedStates<'t>
impl<'t> Sync for InheritedStates<'t>
impl<'t> Unpin for InheritedStates<'t>
impl<'t> !UnwindSafe for InheritedStates<'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