pub struct RealScanner;Expand description
Production scanner: spawns the operator-configured command with
the resolved path as a single argument, waits up to timeout,
captures stderr for the reject detail. The wait uses
std::thread::spawn + mpsc::recv_timeout so team-core stays
sync (no tokio dep — owner-ratify variant 4).
Implementations§
Source§impl RealScanner
impl RealScanner
Sourcepub fn for_spec(spec: &AttachmentScanner) -> Box<dyn Scanner>
pub fn for_spec(spec: &AttachmentScanner) -> Box<dyn Scanner>
Bind a RealScanner to a specific scanner spec. Returns a
boxed trait object so the call site stays uniform with the
MockScanner shape used in tests.
Trait Implementations§
Source§impl Scanner for RealScanner
impl Scanner for RealScanner
Auto Trait Implementations§
impl Freeze for RealScanner
impl RefUnwindSafe for RealScanner
impl Send for RealScanner
impl Sync for RealScanner
impl Unpin for RealScanner
impl UnsafeUnpin for RealScanner
impl UnwindSafe for RealScanner
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