pub struct PluginScanner;Implementations§
Source§impl PluginScanner
impl PluginScanner
pub fn new() -> Self
pub fn scan_path<P: AsRef<Path>>( &self, root: P, ) -> Result<PluginScanReport, IntegrationError>
Sourcepub fn absorb(
&self,
catalog: &mut IntegrationCatalog,
pack: &mut VerticalPackManifest,
report: &PluginScanReport,
) -> Result<PluginAbsorbReport, IntegrationError>
pub fn absorb( &self, catalog: &mut IntegrationCatalog, pack: &mut VerticalPackManifest, report: &PluginScanReport, ) -> Result<PluginAbsorbReport, IntegrationError>
Absorb plugin descriptors into the catalog and pack manifest.
Uses clone-and-restore rollback: if any operation fails partway through,
both catalog and pack are restored to their pre-absorb state so
callers never observe a partially-mutated configuration.
pub fn to_auto_provision_requests( &self, report: &PluginScanReport, ) -> Vec<AutoProvisionRequest>
Trait Implementations§
Source§impl Debug for PluginScanner
impl Debug for PluginScanner
Source§impl Default for PluginScanner
impl Default for PluginScanner
Source§fn default() -> PluginScanner
fn default() -> PluginScanner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PluginScanner
impl RefUnwindSafe for PluginScanner
impl Send for PluginScanner
impl Sync for PluginScanner
impl Unpin for PluginScanner
impl UnsafeUnpin 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