pub struct Guarded<T> { /* private fields */ }Expand description
A routed request carrying the exact method required by its selected guard.
Implementations§
Trait Implementations§
Source§impl<R: Guarded> Start<R> for Guarded<<R::Routes as Family<R::Prepared>>::State<Routed>>
impl<R: Guarded> Start<R> for Guarded<<R::Routes as Family<R::Prepared>>::State<Routed>>
type Stop<T, E> = Result<T, E>
fn admit<'req, 'd: 'req, E: Encode<'req, 'd>, T, F>( self, router: &R, encode: impl FnOnce() -> E, stop: impl FnOnce(Result<<E as Encode<'req, 'd>>::Prepared, (Error<<E as Encode<'req, 'd>>::Error, Infallible, Infallible>, <E as Cancel>::Target)>) -> Result<T, F>, ) -> ControlFlow<Result<T, F>, <<R::Prepared as Prepared>::Family as Family<R::Prepared>>::State<Admitted>>
Auto Trait Implementations§
impl<T> Forget for Guarded<T>
impl<T> Freeze for Guarded<T>where
T: Freeze,
impl<T> RefUnwindSafe for Guarded<T>where
T: RefUnwindSafe,
impl<T> Send for Guarded<T>where
T: Send,
impl<T> Sync for Guarded<T>where
T: Sync,
impl<T> Unpin for Guarded<T>where
T: Unpin,
impl<T> UnsafeUnpin for Guarded<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Guarded<T>where
T: 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