pub struct ContentLengthError {
pub value: String,
}Expand description
A content-length header value that is not an integer: the error
decide fails with.
This mirrors the reference’s int(content_length) ValueError, which
the pipeline answers with the fail-secure 500 "Security check failed".
Fields§
§value: StringThe rejected header value.
Trait Implementations§
Source§impl Clone for ContentLengthError
impl Clone for ContentLengthError
Source§impl Debug for ContentLengthError
impl Debug for ContentLengthError
Source§impl Display for ContentLengthError
impl Display for ContentLengthError
impl Eq for ContentLengthError
Source§impl Error for ContentLengthError
impl Error for ContentLengthError
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 ContentLengthError
impl PartialEq for ContentLengthError
impl StructuralPartialEq for ContentLengthError
Auto Trait Implementations§
impl Freeze for ContentLengthError
impl RefUnwindSafe for ContentLengthError
impl Send for ContentLengthError
impl Sync for ContentLengthError
impl Unpin for ContentLengthError
impl UnsafeUnpin for ContentLengthError
impl UnwindSafe for ContentLengthError
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<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.