pub enum RewriteError {
InvalidRegex {
pattern: String,
message: String,
},
UnsafeLocation(String),
}Expand description
Errors produced when compiling [RewriteConfig] into [CompiledRewrite].
Variants§
InvalidRegex
A configured regex pattern failed to compile.
UnsafeLocation(String)
A configured canonical host or target contained forbidden CR/LF control characters.
Trait Implementations§
Source§impl Clone for RewriteError
impl Clone for RewriteError
Source§impl Debug for RewriteError
impl Debug for RewriteError
Source§impl Display for RewriteError
Formats RewriteError for display diagnostics.
impl Display for RewriteError
Formats RewriteError for display diagnostics.
impl Eq for RewriteError
Source§impl Error for RewriteError
Marks RewriteError as a standard error type.
impl Error for RewriteError
Marks RewriteError as a standard error type.
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RewriteError
impl PartialEq for RewriteError
impl StructuralPartialEq for RewriteError
Auto Trait Implementations§
impl Forget for RewriteError
impl Freeze for RewriteError
impl Move for RewriteError
impl RefUnwindSafe for RewriteError
impl Send for RewriteErrorwhere
RawVecInner: Send,
impl Sync for RewriteErrorwhere
RawVecInner: Sync,
impl Unpin for RewriteError
impl UnsafeUnpin for RewriteError
impl UnwindSafe for RewriteErrorwhere
RawVecInner: UnwindSafe,
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.