pub enum Start<U, G> {
Plain(Plain<U>),
Guarded(Guarded<G>),
}Expand description
Route-selected admission contract for an application containing both guarded and unguarded routes.
Variants§
Trait Implementations§
Source§impl<R, U> Start<R> for Start<U, <R::Routes as Family<R::Prepared>>::State<Routed>>
impl<R, U> Start<R> for Start<U, <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<U, G> Forget for Start<U, G>
impl<U, G> Freeze for Start<U, G>
impl<U, G> RefUnwindSafe for Start<U, G>
impl<U, G> Send for Start<U, G>
impl<U, G> Sync for Start<U, G>
impl<U, G> Unpin for Start<U, G>
impl<U, G> UnsafeUnpin for Start<U, G>
impl<U, G> UnwindSafe for Start<U, G>
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