pub enum Resumable {
Wasm(WasmResumable),
Host {
host_call: HostCall,
host_resumable: HostResumable,
},
}Variants§
Implementations§
Source§impl Resumable
impl Resumable
Sourcepub fn as_wasm(self) -> Option<WasmResumable>
pub fn as_wasm(self) -> Option<WasmResumable>
Tries to convert this Resumable into a WasmResumable
Sourcepub fn as_host(self) -> Option<(HostCall, HostResumable)>
pub fn as_host(self) -> Option<(HostCall, HostResumable)>
Tries to convert this Resumable into a HostCall and
HostResumable
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resumable
impl RefUnwindSafe for Resumable
impl Send for Resumable
impl Sync for Resumable
impl Unpin for Resumable
impl UnwindSafe for Resumable
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