pub struct NativeFirstHandler { /* private fields */ }Implementations§
Source§impl NativeFirstHandler
impl NativeFirstHandler
pub fn new( native: Arc<dyn ChallengeHandler>, fallback: Arc<dyn ChallengeHandler>, ) -> Self
Trait Implementations§
Source§impl ChallengeHandler for NativeFirstHandler
impl ChallengeHandler for NativeFirstHandler
fn name(&self) -> HandlerName
fn detects<'life0, 'life1, 'async_trait>(
&'life0 self,
page: &'life1 PageHtml,
) -> Pin<Box<dyn Future<Output = Result<bool, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn solve<'life0, 'life1, 'async_trait>(
&'life0 self,
page: &'life1 PageHtml,
) -> Pin<Box<dyn Future<Output = Result<HandlerOutcome, AppError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for NativeFirstHandler
impl !RefUnwindSafe for NativeFirstHandler
impl Send for NativeFirstHandler
impl Sync for NativeFirstHandler
impl Unpin for NativeFirstHandler
impl UnsafeUnpin for NativeFirstHandler
impl !UnwindSafe for NativeFirstHandler
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