pub enum RedirectStatus {
MovedPermanently301,
Found302,
Temporary307,
Permanent308,
}Expand description
Supported HTTP redirect status codes for short-circuit rewrite rules.
Variants§
MovedPermanently301
301 Moved Permanently
Found302
302 Found
Temporary307
307 Temporary Redirect (preserves HTTP method and body).
Permanent308
308 Permanent Redirect (preserves HTTP method and body).
Implementations§
Source§impl RedirectStatus
Inherent status-code mapping for RedirectStatus.
impl RedirectStatus
Inherent status-code mapping for RedirectStatus.
Trait Implementations§
Source§impl Clone for RedirectStatus
impl Clone for RedirectStatus
impl Copy for RedirectStatus
Source§impl Debug for RedirectStatus
impl Debug for RedirectStatus
Source§impl Default for RedirectStatus
impl Default for RedirectStatus
impl Eq for RedirectStatus
Source§impl PartialEq for RedirectStatus
impl PartialEq for RedirectStatus
impl StructuralPartialEq for RedirectStatus
Auto Trait Implementations§
impl Forget for RedirectStatus
impl Freeze for RedirectStatus
impl Move for RedirectStatus
impl RefUnwindSafe for RedirectStatus
impl Send for RedirectStatus
impl Sync for RedirectStatus
impl Unpin for RedirectStatus
impl UnsafeUnpin for RedirectStatus
impl UnwindSafe for RedirectStatus
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.