pub struct PluginDiscovery { /* private fields */ }Expand description
Plugin discovery system
Implementations§
Source§impl PluginDiscovery
impl PluginDiscovery
Sourcepub fn default_plugin_dir() -> PathBuf
pub fn default_plugin_dir() -> PathBuf
Get default plugin directory (~/.config/scarab/plugins)
Sourcepub fn default_config_path() -> PathBuf
pub fn default_config_path() -> PathBuf
Get default config file path (~/.config/scarab/plugins.toml)
Sourcepub fn load_config(&self, path: Option<&Path>) -> Result<Vec<PluginConfig>>
pub fn load_config(&self, path: Option<&Path>) -> Result<Vec<PluginConfig>>
Load plugins from configuration file
Sourcepub fn ensure_plugin_dir() -> Result<PathBuf>
pub fn ensure_plugin_dir() -> Result<PathBuf>
Create default plugin directory if it doesn’t exist
Sourcepub fn create_default_config() -> Result<PathBuf>
pub fn create_default_config() -> Result<PathBuf>
Create default config file with example
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PluginDiscovery
impl RefUnwindSafe for PluginDiscovery
impl Send for PluginDiscovery
impl Sync for PluginDiscovery
impl Unpin for PluginDiscovery
impl UnsafeUnpin for PluginDiscovery
impl UnwindSafe for PluginDiscovery
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.