Enum task_struct::InheritedStates
source · pub enum InheritedStates<'t> {
FromTask(&'t Task),
Custom {
mmi: MmiRef,
namespace: Arc<CrateNamespace>,
env: Arc<Mutex<Environment>>,
app_crate: Option<Arc<AppCrateRef>>,
},
}
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
§
mmi: MmiRef
The new Task
will be initialized with the enclosed custom states.
Trait Implementations§
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