pub enum MaybeRedirect<C>where
C: Component,{
Redirect(StatusCode, Uri),
Else(C),
}Variants§
Redirect(StatusCode, Uri)
Else(C)
Trait Implementations§
Source§impl<C> Component for MaybeRedirect<C>where
C: Component,
impl<C> Component for MaybeRedirect<C>where
C: Component,
fn view(self) -> Node
fn status_code(&self) -> StatusCode
fn ty(&self) -> ComponentType
Auto Trait Implementations§
impl<C> !Freeze for MaybeRedirect<C>
impl<C> RefUnwindSafe for MaybeRedirect<C>where
C: RefUnwindSafe,
impl<C> Send for MaybeRedirect<C>where
C: Send,
impl<C> Sync for MaybeRedirect<C>where
C: Sync,
impl<C> Unpin for MaybeRedirect<C>where
C: Unpin,
impl<C> UnwindSafe for MaybeRedirect<C>where
C: 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