pub struct PluginScanner { /* private fields */ }Expand description
Plugin directory scanner
Implementations§
Source§impl PluginScanner
impl PluginScanner
Sourcepub fn new() -> Result<Self, LoaderError>
pub fn new() -> Result<Self, LoaderError>
Create a new plugin scanner
Sourcepub fn with_loader(loader: PluginLoader) -> Self
pub fn with_loader(loader: PluginLoader) -> Self
Create with an existing loader
Sourcepub fn scan_directory(
&self,
dir: impl AsRef<Path>,
) -> Result<DiscoveryResult, DiscoveryError>
pub fn scan_directory( &self, dir: impl AsRef<Path>, ) -> Result<DiscoveryResult, DiscoveryError>
Scan a directory for .wasm plugin files
Sourcepub fn scan_directories(
&self,
dirs: impl IntoIterator<Item = impl AsRef<Path>>,
) -> DiscoveryResult
pub fn scan_directories( &self, dirs: impl IntoIterator<Item = impl AsRef<Path>>, ) -> DiscoveryResult
Scan multiple directories
Auto Trait Implementations§
impl Freeze for PluginScanner
impl !RefUnwindSafe for PluginScanner
impl Send for PluginScanner
impl Sync for PluginScanner
impl Unpin for PluginScanner
impl !UnwindSafe for PluginScanner
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more