#[non_exhaustive]pub enum ScanProfile {
Full,
Fast,
Frame,
Custom(ScanConfig),
}Expand description
Named scan profiles — the public selector.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Full
Full ladder + full stress score (generator quality gate).
Fast
Reduced ladder, reduced budget (upload tool).
Frame
Per-frame camera decode: no scoring, tight budget.
Custom(ScanConfig)
Explicit stage configuration.
Implementations§
Source§impl ScanProfile
impl ScanProfile
Sourcepub fn from_name(name: &str) -> Option<Self>
pub fn from_name(name: &str) -> Option<Self>
Parse the cross-language wire name (full · fast · frame) — the
ONE mapping every binding reuses (drift-proof).
Sourcepub fn config(self) -> ScanConfig
pub fn config(self) -> ScanConfig
The profile’s ScanConfig — the embedder hook for adjusting a
preset (e.g. tightening budget_ms for a UI-thread scan) before
wrapping it back in ScanProfile::Custom.
Trait Implementations§
Source§impl Clone for ScanProfile
impl Clone for ScanProfile
Source§impl Debug for ScanProfile
impl Debug for ScanProfile
Source§impl Default for ScanProfile
impl Default for ScanProfile
impl Eq for ScanProfile
Source§impl PartialEq for ScanProfile
impl PartialEq for ScanProfile
impl StructuralPartialEq for ScanProfile
Auto Trait Implementations§
impl Forget for ScanProfile
impl Freeze for ScanProfilewhere
*const u8 is !null: Freeze,
PhantomData<StressAxis>: Freeze,
PhantomData<ScoreCheck>: Freeze,
PhantomData<[u8; 3]>: Freeze,
PhantomData<Symbology>: Freeze,
impl Move for ScanProfile
impl RefUnwindSafe for ScanProfile
impl Send for ScanProfilewhere
RawVecInner: Send,
impl Sync for ScanProfilewhere
RawVecInner: Sync,
impl Unpin for ScanProfile
impl UnsafeUnpin for ScanProfilewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<StressAxis>: UnsafeUnpin,
PhantomData<ScoreCheck>: UnsafeUnpin,
PhantomData<[u8; 3]>: UnsafeUnpin,
PhantomData<Symbology>: UnsafeUnpin,
impl UnwindSafe for ScanProfilewhere
RawVecInner: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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