Struct wasmtime_fiber::FiberStack
source · pub struct FiberStack(/* private fields */);
Expand description
Represents an execution stack to use for a fiber.
Implementations§
source§impl FiberStack
impl FiberStack
sourcepub unsafe fn from_raw_parts(bottom: *mut u8, len: usize) -> Result<Self>
pub unsafe fn from_raw_parts(bottom: *mut u8, len: usize) -> Result<Self>
Creates a new fiber stack with the given pointer to the bottom of the stack plus the byte length of the stack.
The bottom
pointer should be addressable for len
bytes. The page
beneath bottom
should be unmapped as a guard page.
Safety
This is unsafe because there is no validation of the given pointer.
The caller must properly allocate the stack space with a guard page and make the pages accessible for correct behavior.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FiberStack
impl !Send for FiberStack
impl !Sync for FiberStack
impl Unpin for FiberStack
impl UnwindSafe for FiberStack
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