pub struct ControllerScanner;
Expand description
Auto-discovery helper for controllers
Implementations§
Source§impl ControllerScanner
impl ControllerScanner
Sourcepub async fn scan_and_register(
_registry: &mut ControllerRegistry,
_module_path: &str,
) -> Result<usize, HttpError>
pub async fn scan_and_register( _registry: &mut ControllerRegistry, _module_path: &str, ) -> Result<usize, HttpError>
Scan for controllers in a module and register them automatically This would typically be implemented as a proc macro in a full implementation
Auto Trait Implementations§
impl Freeze for ControllerScanner
impl RefUnwindSafe for ControllerScanner
impl Send for ControllerScanner
impl Sync for ControllerScanner
impl Unpin for ControllerScanner
impl UnwindSafe for ControllerScanner
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