pub struct LocalContext {
pub supervisor: bool,
pub interrupt: bool,
/* private fields */
}Expand description
线程上下文。
Fields§
§supervisor: bool是否以特权态切换。
interrupt: bool线程中断是否开启。
Implementations§
Source§impl LocalContext
impl LocalContext
Trait Implementations§
Source§impl Clone for LocalContext
impl Clone for LocalContext
Source§fn clone(&self) -> LocalContext
fn clone(&self) -> LocalContext
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 LocalContext
impl RefUnwindSafe for LocalContext
impl Send for LocalContext
impl Sync for LocalContext
impl Unpin for LocalContext
impl UnwindSafe for LocalContext
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