pub(crate) struct TaskLayout {
pub(crate) layout: Layout,
pub(crate) offset_s: usize,
pub(crate) offset_f: usize,
pub(crate) offset_r: usize,
}Expand description
Memory layout of a task.
This struct contains the following information:
- How to allocate and deallocate the task.
- How to access the fields inside the task.
Fields§
§layout: LayoutMemory layout of the whole task.
offset_s: usizeOffset into the task at which the schedule function is stored.
offset_f: usizeOffset into the task at which the future is stored.
offset_r: usizeOffset into the task at which the output is stored.
Trait Implementations§
Source§impl Clone for TaskLayout
impl Clone for TaskLayout
Source§fn clone(&self) -> TaskLayout
fn clone(&self) -> TaskLayout
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 moreimpl Copy for TaskLayout
Auto Trait Implementations§
impl Freeze for TaskLayout
impl RefUnwindSafe for TaskLayout
impl Send for TaskLayout
impl Sync for TaskLayout
impl Unpin for TaskLayout
impl UnwindSafe for TaskLayout
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