Struct wasmtime_fiber::FiberStack
source · pub struct FiberStack(_);
Expand description
Represents an execution stack to use for a fiber.
Implementations§
source§impl FiberStack
impl FiberStack
sourcepub unsafe fn from_top_ptr(top: *mut u8) -> Result<Self>
pub unsafe fn from_top_ptr(top: *mut u8) -> Result<Self>
Creates a new fiber stack with the given pointer to the top of the stack.
Safety
This is unsafe because there is no validation of the given stack 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