pub enum RawResponsePolicyError {
InformationalLimitTooLarge,
BodyLimitTooLarge,
MissingMediaType,
DuplicateMediaType,
TooManyAdmittedHeaders,
DuplicateAdmittedHeader,
UnsafeAdmittedHeader,
ForbiddenMediaHasBodyLimit,
}Expand description
Invalid raw response-wire policy.
Variants§
InformationalLimitTooLarge
An informational-response limit exceeded the global hard ceiling.
BodyLimitTooLarge
A body limit exceeded the buffered raw-response ceiling.
MissingMediaType
Required or optional media policy omitted accepted media types.
DuplicateMediaType
A media policy contains duplicate media-type essences.
TooManyAdmittedHeaders
Too many response-header names were admitted.
DuplicateAdmittedHeader
Admitted response-header names contain a duplicate.
UnsafeAdmittedHeader
Credential, cookie, framing, proxy, or upgrade response metadata was admitted.
ForbiddenMediaHasBodyLimit
A status class forbids media and body data but has a nonzero body limit.
Trait Implementations§
Source§impl Clone for RawResponsePolicyError
impl Clone for RawResponsePolicyError
Source§fn clone(&self) -> RawResponsePolicyError
fn clone(&self) -> RawResponsePolicyError
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 moreimpl Copy for RawResponsePolicyError
Source§impl Debug for RawResponsePolicyError
impl Debug for RawResponsePolicyError
Source§impl Display for RawResponsePolicyError
impl Display for RawResponsePolicyError
impl Eq for RawResponsePolicyError
Source§impl Error for RawResponsePolicyError
impl Error for RawResponsePolicyError
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 RawResponsePolicyError
impl PartialEq for RawResponsePolicyError
impl StructuralPartialEq for RawResponsePolicyError
Auto Trait Implementations§
impl Freeze for RawResponsePolicyError
impl RefUnwindSafe for RawResponsePolicyError
impl Send for RawResponsePolicyError
impl Sync for RawResponsePolicyError
impl Unpin for RawResponsePolicyError
impl UnsafeUnpin for RawResponsePolicyError
impl UnwindSafe for RawResponsePolicyError
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