Struct lean_sys::lean_task_imp
source · #[repr(C)]pub struct lean_task_imp {
pub m_closure: *mut lean_object,
pub m_head_dep: *mut lean_task,
pub m_next_dep: *mut lean_task,
pub m_prio: c_uint,
pub m_canceled: u8,
pub m_keep_alive: u8,
pub m_deleted: u8,
}
Expand description
Data required for executing a Lean task. It is released as soon as the task terminates even if the task object itself is still referenced.
Fields§
§m_closure: *mut lean_object
§m_head_dep: *mut lean_task
§m_next_dep: *mut lean_task
§m_prio: c_uint
§m_canceled: u8
§m_keep_alive: u8
If true, task will not be freed until finished
m_deleted: u8
Trait Implementations§
source§impl Clone for lean_task_imp
impl Clone for lean_task_imp
source§fn clone(&self) -> lean_task_imp
fn clone(&self) -> lean_task_imp
Returns a copy 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 Debug for lean_task_imp
impl Debug for lean_task_imp
impl Copy for lean_task_imp
Auto Trait Implementations§
impl Freeze for lean_task_imp
impl RefUnwindSafe for lean_task_imp
impl !Send for lean_task_imp
impl !Sync for lean_task_imp
impl Unpin for lean_task_imp
impl UnwindSafe for lean_task_imp
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