Struct wasmedge_sys::plugin::ProgramOption
source · pub struct ProgramOption {
pub inner: WasmEdge_ProgramOption,
/* private fields */
}
Expand description
Defines the program option for plugins.
Fields§
§inner: WasmEdge_ProgramOption
Implementations§
source§impl ProgramOption
impl ProgramOption
sourcepub fn create(
name: impl AsRef<str>,
desc: impl AsRef<str>,
ty: ProgramOptionType
) -> WasmEdgeResult<Self>
pub fn create( name: impl AsRef<str>, desc: impl AsRef<str>, ty: ProgramOptionType ) -> WasmEdgeResult<Self>
Creates a new program option.
Trait Implementations§
source§impl Debug for ProgramOption
impl Debug for ProgramOption
impl Send for ProgramOption
impl Sync for ProgramOption
Auto Trait Implementations§
impl RefUnwindSafe for ProgramOption
impl Unpin for ProgramOption
impl UnwindSafe for ProgramOption
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