#[non_exhaustive]pub enum IndexHandling {
MapEmptyPathToIndex,
NoIndexHandling,
}Expand description
Enum controlling how requests with path ‘/’ are handled
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.
MapEmptyPathToIndex
map requests to ‘/’ to ‘index.html’
NoIndexHandling
apply no special logic to requests to ‘/’
Trait Implementations§
impl Eq for IndexHandling
Source§impl PartialEq for IndexHandling
impl PartialEq for IndexHandling
Source§fn eq(&self, other: &IndexHandling) -> bool
fn eq(&self, other: &IndexHandling) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IndexHandling
Auto Trait Implementations§
impl Freeze for IndexHandling
impl RefUnwindSafe for IndexHandling
impl Send for IndexHandling
impl Sync for IndexHandling
impl Unpin for IndexHandling
impl UnsafeUnpin for IndexHandling
impl UnwindSafe for IndexHandling
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
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.