pub struct WorkerRuntime;Implementations§
Source§impl WorkerRuntime
impl WorkerRuntime
Sourcepub unsafe fn entry_input(input_ptr: usize, input_len: u32) -> String
pub unsafe fn entry_input(input_ptr: usize, input_len: u32) -> String
§Safety
input_ptr must reference at least input_len readable bytes when input_len is non-zero.
pub fn report_progress(progress: impl AsRef<str>)
pub fn complete(result: impl AsRef<str>)
pub fn fail(message: impl AsRef<str>)
pub fn is_cancelled() -> bool
pub fn yield(delay_ms: i32) -> bool
pub fn yield_now(delay_ms: i32) -> bool
Auto Trait Implementations§
impl Freeze for WorkerRuntime
impl RefUnwindSafe for WorkerRuntime
impl Send for WorkerRuntime
impl Sync for WorkerRuntime
impl Unpin for WorkerRuntime
impl UnsafeUnpin for WorkerRuntime
impl UnwindSafe for WorkerRuntime
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