#[non_exhaustive]pub enum RedirectDir {
On,
Follow,
NoFollow,
Off,
}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.
On
Redirects are enabled.
Follow
Redirects aren’t created, but followed.
NoFollow
Redirects aren’t created and not followed.
Off
If “redirect_always_follow” is enabled in the kernel/module config, this “off” translates to “follow”, otherwise it translates to “nofollow”.
Trait Implementations§
Source§impl Clone for RedirectDir
impl Clone for RedirectDir
Source§fn clone(&self) -> RedirectDir
fn clone(&self) -> RedirectDir
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 RedirectDir
impl Debug for RedirectDir
Source§impl Display for RedirectDir
impl Display for RedirectDir
Source§impl From<RedirectDir> for OverlayFsOption
impl From<RedirectDir> for OverlayFsOption
Source§fn from(val: RedirectDir) -> Self
fn from(val: RedirectDir) -> Self
Converts to this type from the input type.
Source§impl From<RedirectDir> for String
impl From<RedirectDir> for String
Source§fn from(o: RedirectDir) -> String
fn from(o: RedirectDir) -> String
Converts to this type from the input type.
Source§impl Ord for RedirectDir
impl Ord for RedirectDir
Source§fn cmp(&self, other: &RedirectDir) -> Ordering
fn cmp(&self, other: &RedirectDir) -> 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 RedirectDir
impl PartialEq for RedirectDir
Source§impl PartialOrd for RedirectDir
impl PartialOrd for RedirectDir
impl Copy for RedirectDir
impl Eq for RedirectDir
impl StructuralPartialEq for RedirectDir
Auto Trait Implementations§
impl Freeze for RedirectDir
impl RefUnwindSafe for RedirectDir
impl Send for RedirectDir
impl Sync for RedirectDir
impl Unpin for RedirectDir
impl UnwindSafe for RedirectDir
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