pub struct AurScannerPlugin { /* private fields */ }Expand description
Plugin for AUR helper integration
Implementations§
Source§impl AurScannerPlugin
impl AurScannerPlugin
Sourcepub fn new(config: ScanConfig) -> Result<Self, ScanError>
pub fn new(config: ScanConfig) -> Result<Self, ScanError>
Create a new plugin instance
Sourcepub fn with_defaults() -> Result<Self, ScanError>
pub fn with_defaults() -> Result<Self, ScanError>
Create a plugin with default configuration
Sourcepub fn set_interactive(&mut self, interactive: bool)
pub fn set_interactive(&mut self, interactive: bool)
Set whether to prompt user interactively
Sourcepub async fn pre_build_scan(
&self,
package_dir: &Path,
) -> Result<ScanResult, ScanError>
pub async fn pre_build_scan( &self, package_dir: &Path, ) -> Result<ScanResult, ScanError>
Scan a package directory before building
Sourcepub fn handle_results(&self, result: &ScanResult) -> bool
pub fn handle_results(&self, result: &ScanResult) -> bool
Display scan results and optionally prompt user
Returns true if installation should proceed, false to abort
Auto Trait Implementations§
impl !RefUnwindSafe for AurScannerPlugin
impl !UnwindSafe for AurScannerPlugin
impl Freeze for AurScannerPlugin
impl Send for AurScannerPlugin
impl Sync for AurScannerPlugin
impl Unpin for AurScannerPlugin
impl UnsafeUnpin for AurScannerPlugin
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