pub struct ModuleLoadOptions { /* private fields */ }
Expand description
Options for the module_load
command
Implementations§
Source§impl ModuleLoadOptions
impl ModuleLoadOptions
Sourcepub fn config<N, V>(self, name: N, value: V) -> Self
pub fn config<N, V>(self, name: N, value: V) -> Self
You can use this optional method to provide the module with configuration directives. This method can be called multiple times
Sourcepub fn arg<A: Into<CommandArg>>(self, arg: A) -> Self
pub fn arg<A: Into<CommandArg>>(self, arg: A) -> Self
Any additional arguments are passed unmodified to the module. This method can be called multiple times
Trait Implementations§
Source§impl Default for ModuleLoadOptions
impl Default for ModuleLoadOptions
Source§fn default() -> ModuleLoadOptions
fn default() -> ModuleLoadOptions
Returns the “default value” for a type. Read more
Source§impl IntoArgs for ModuleLoadOptions
impl IntoArgs for ModuleLoadOptions
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations§
impl Freeze for ModuleLoadOptions
impl RefUnwindSafe for ModuleLoadOptions
impl Send for ModuleLoadOptions
impl Sync for ModuleLoadOptions
impl Unpin for ModuleLoadOptions
impl UnwindSafe for ModuleLoadOptions
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