#[non_exhaustive]pub enum ServeDirFault {
WithoutCatchAll {
path: String,
},
Twice {
path: String,
},
Taken {
path: String,
panel: String,
},
}Expand description
Why a panel cannot serve a directory serve_dir or
uploads_dir declares.
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.
WithoutCatchAll
A pattern that does not end in a catch-all.
End it in {*file}: /uploads/{*file}.
Twice
The panel serves the same directory pattern twice.
Drop the second serve_dir.
Taken
Another panel already serves the directory pattern.
Serve it from one panel.
Trait Implementations§
Source§impl Clone for ServeDirFault
impl Clone for ServeDirFault
Source§fn clone(&self) -> ServeDirFault
fn clone(&self) -> ServeDirFault
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServeDirFault
impl Debug for ServeDirFault
Source§impl Display for ServeDirFault
impl Display for ServeDirFault
impl Eq for ServeDirFault
Source§impl PartialEq for ServeDirFault
impl PartialEq for ServeDirFault
impl StructuralPartialEq for ServeDirFault
Auto Trait Implementations§
impl Freeze for ServeDirFault
impl RefUnwindSafe for ServeDirFault
impl Send for ServeDirFault
impl Sync for ServeDirFault
impl Unpin for ServeDirFault
impl UnsafeUnpin for ServeDirFault
impl UnwindSafe for ServeDirFault
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.