#[non_exhaustive]pub enum RedirectionResponse {
MultipleChoices = 300,
MovedPermanently = 301,
Found = 302,
SeeOther = 303,
NotModified = 304,
UseProxy = 305,
SwitchProxy = 306,
TemporaryRedirect = 307,
PermanentRedirect = 308,
}Expand description
§Wikipedia:
A RedirectionResponse (3xx) status indicates that the client must take additional action, generally URL redirection, to complete the request. A user agent may carry out the additional action with no user interaction if the method used in the additional request is GET or HEAD. A user agent should prevent cyclical redirects.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MultipleChoices = 300
MovedPermanently = 301
Found = 302
SeeOther = 303
NotModified = 304
UseProxy = 305
SwitchProxy = 306
TemporaryRedirect = 307
PermanentRedirect = 308
Trait Implementations§
Source§impl Clone for RedirectionResponse
impl Clone for RedirectionResponse
Source§fn clone(&self) -> RedirectionResponse
fn clone(&self) -> RedirectionResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RedirectionResponse
impl Debug for RedirectionResponse
Source§impl Display for RedirectionResponse
impl Display for RedirectionResponse
Source§impl From<RedirectionResponse> for HttpStatus
impl From<RedirectionResponse> for HttpStatus
Source§fn from(val: RedirectionResponse) -> Self
fn from(val: RedirectionResponse) -> Self
Converts to this type from the input type.
Source§impl Hash for RedirectionResponse
impl Hash for RedirectionResponse
Source§impl Ord for RedirectionResponse
impl Ord for RedirectionResponse
Source§fn cmp(&self, other: &RedirectionResponse) -> Ordering
fn cmp(&self, other: &RedirectionResponse) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RedirectionResponse
impl PartialEq for RedirectionResponse
Source§impl PartialOrd for RedirectionResponse
impl PartialOrd for RedirectionResponse
impl Eq for RedirectionResponse
impl StructuralPartialEq for RedirectionResponse
Auto Trait Implementations§
impl Freeze for RedirectionResponse
impl RefUnwindSafe for RedirectionResponse
impl Send for RedirectionResponse
impl Sync for RedirectionResponse
impl Unpin for RedirectionResponse
impl UnwindSafe for RedirectionResponse
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