Module core

Module core 

Source
Expand description

Core types and traits for the scanbridge library.

This module provides the fundamental building blocks used throughout the library:

  • types - Common types like ScanOutcome, ThreatInfo, FileHash
  • traits - The Scanner trait and configuration interfaces
  • error - Structured error types
  • input - File input abstraction
  • hasher - BLAKE3-based file hashing
  • result - Scan result structures

Re-exports§

pub use error::PolicyError;
pub use error::QuarantineError;
pub use error::ScanError;
pub use hasher::FileHasher;
pub use input::FileInput;
pub use result::ScanReport;
pub use result::ScanResult;
pub use traits::ArcScanner;
pub use traits::BoxedScanner;
pub use traits::DefaultScannerConfig;
pub use traits::Scanner;
pub use traits::ScannerConfig;
pub use types::FileHash;
pub use types::FileMetadata;
pub use types::ScanContext;
pub use types::ScanOutcome;
pub use types::ThreatInfo;
pub use types::ThreatSeverity;

Modules§

error
Error types for the scanbridge library.
hasher
Efficient file hashing with BLAKE3.
input
File input abstraction for flexible file handling.
result
Scan result structures.
traits
Core traits for the scanbridge library.
types
Core types used throughout the scanbridge library.