pub struct NativeAxumScanner;Expand description
Native scanner that reads from the compile-time route metadata registry.
Implementations§
Source§impl NativeAxumScanner
impl NativeAxumScanner
pub fn new() -> Self
Sourcepub fn scan_routes(
&self,
routes: &[RouteMetadata],
include: Option<&str>,
exclude: Option<&str>,
) -> Result<Vec<ScannedModule>, AxumApcoreError>
pub fn scan_routes( &self, routes: &[RouteMetadata], include: Option<&str>, exclude: Option<&str>, ) -> Result<Vec<ScannedModule>, AxumApcoreError>
Scan from an explicit list of routes (bypasses the global registry).
Trait Implementations§
Source§impl AxumScanner for NativeAxumScanner
impl AxumScanner for NativeAxumScanner
Source§fn scan<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_app: &'life1 Router,
include: Option<&'life2 str>,
exclude: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ScannedModule>, AxumApcoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn scan<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_app: &'life1 Router,
include: Option<&'life2 str>,
exclude: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ScannedModule>, AxumApcoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Scan routes and return module definitions.
Source§fn source_name(&self) -> &str
fn source_name(&self) -> &str
Human-readable scanner name.
Auto Trait Implementations§
impl Freeze for NativeAxumScanner
impl RefUnwindSafe for NativeAxumScanner
impl Send for NativeAxumScanner
impl Sync for NativeAxumScanner
impl Unpin for NativeAxumScanner
impl UnsafeUnpin for NativeAxumScanner
impl UnwindSafe for NativeAxumScanner
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