pub enum WasmModule {
Bytes(Vec<u8>),
ChunkedModule(ChunkedModule),
}Expand description
The WASM to be installed.
Variants§
Bytes(Vec<u8>)
A module < 2MB that can be installed in a single message
ChunkedModule(ChunkedModule)
A module > 2MB that must be installed in chunks. Chunks are assumed to already have been uploaded.
Trait Implementations§
Source§impl Clone for WasmModule
impl Clone for WasmModule
Source§fn clone(&self) -> WasmModule
fn clone(&self) -> WasmModule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WasmModule
impl RefUnwindSafe for WasmModule
impl Send for WasmModule
impl Sync for WasmModule
impl Unpin for WasmModule
impl UnsafeUnpin for WasmModule
impl UnwindSafe for WasmModule
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