Trait PreventDefault

Source
pub trait PreventDefault<R: Runtime> {
    // Required methods
    fn script(&self) -> Script;
    fn try_script(&self) -> Option<Script>;
}
Expand description

Provide access to the script.

Required Methods§

Source

fn script(&self) -> Script

Retrieve the script.

§Panics

Panics if the plugin was not built with manual injection.

Source

fn try_script(&self) -> Option<Script>

Attempt to retrieve the script.

Returns Some if the plugin was built with manual injection. Otherwise returns None.

Implementors§

Source§

impl<R, T> PreventDefault<R> for T
where R: Runtime, T: Manager<R>,