pub struct WasmMethodDesc {
pub name: &'static str,
pub wire_raw: bool,
}Expand description
One method on the interface.
Fields§
§name: &'static strExport name within the interface (e.g. "greet").
wire_raw: boolWhether this method uses raw byte-passthrough wire mode (#[wire(raw)]).
Trait Implementations§
Source§impl Clone for WasmMethodDesc
impl Clone for WasmMethodDesc
Source§fn clone(&self) -> WasmMethodDesc
fn clone(&self) -> WasmMethodDesc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WasmMethodDesc
Auto Trait Implementations§
impl Freeze for WasmMethodDesc
impl RefUnwindSafe for WasmMethodDesc
impl Send for WasmMethodDesc
impl Sync for WasmMethodDesc
impl Unpin for WasmMethodDesc
impl UnsafeUnpin for WasmMethodDesc
impl UnwindSafe for WasmMethodDesc
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