pub struct Plugin<S>{ /* private fields */ }
Implementations§
Source§impl<S> Plugin<S>
impl<S> Plugin<S>
pub fn option_str(&self, name: &str) -> Result<Option<Value>>
pub fn option<'a, OV: OptionType<'a>>( &self, config_option: &ConfigOption<'a, OV>, ) -> Result<OV::OutputValue>
pub fn set_option_str(&self, name: &str, value: Value) -> Result<()>
pub fn set_option<'a, OV: OptionType<'a>>( &self, config_option: &ConfigOption<'a, OV>, value: Value, ) -> Result<()>
Source§impl<S> Plugin<S>
impl<S> Plugin<S>
pub fn options(&self) -> Vec<UntypedConfigOption>
pub fn configuration(&self) -> Configuration
pub fn state(&self) -> &S
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Plugin<S>where
S: Freeze,
impl<S> RefUnwindSafe for Plugin<S>where
S: RefUnwindSafe,
impl<S> Send for Plugin<S>
impl<S> Sync for Plugin<S>where
S: Sync,
impl<S> Unpin for Plugin<S>where
S: Unpin,
impl<S> UnwindSafe for Plugin<S>where
S: UnwindSafe,
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