[][src]Struct r3::kernel::StackHunk

pub struct StackHunk<System>(_, _);

Hunk for a task stack.

Implementations

impl<System> StackHunk<System>[src]

pub const unsafe fn from_hunk(hunk: Hunk<System>, len: usize) -> Self[src]

Construct a StackHunk from Hunk.

Safety

The caller is responsible for making sure the region represented by hunk is solely used for a single task's stack.

Also, hunk must be properly aligned for a stack region.

pub fn into_inner(self) -> (Hunk<System>, usize)[src]

Get the inner Hunk and the length, consuming self.

impl<System: Kernel> StackHunk<System>[src]

pub fn as_ptr(&self) -> *mut [u8][src]

Get a raw pointer to the hunk's contents.

Trait Implementations

impl<System> Clone for StackHunk<System>[src]

impl<System> Copy for StackHunk<System>[src]

impl<System: Kernel> Debug for StackHunk<System>[src]

impl<System> Init for StackHunk<System>[src]

impl<System> Sync for StackHunk<System>[src]

Auto Trait Implementations

impl<System> Send for StackHunk<System> where
    System: Send

impl<System> Unpin for StackHunk<System> where
    System: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.