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 Freeze for ProgramOption
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