#[non_exhaustive]pub enum HandshakeBodyCaptureState {
Omitted,
Unavailable,
Incomplete,
Unsupported,
TooLarge,
Unrecognized,
Captured,
}Expand description
Result of safe response-body summary capture, or the specific reason no summary was collected.
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.
Omitted
The configuration requires that the body be omitted, for example, the allowed list of public error codes is empty.
No body data is available, or allocating memory for the safe summary failed.
Incomplete
Unable to verify body length and integrity based on currently available bytes.
Unsupported
HTTP body delimitation, content type, or JSON representation is not supported or is ambiguous.
TooLarge
The available body or declared length exceeds the 16 KiB input limit.
Unrecognized
The JSON is valid, but a unique top-level string error code that matches the allowed list was not found.
Captured
A summary was collected containing only a code allowed by configuration.
Trait Implementations§
Source§impl Clone for HandshakeBodyCaptureState
impl Clone for HandshakeBodyCaptureState
impl Copy for HandshakeBodyCaptureState
Source§impl Debug for HandshakeBodyCaptureState
impl Debug for HandshakeBodyCaptureState
impl Eq for HandshakeBodyCaptureState
impl StructuralPartialEq for HandshakeBodyCaptureState
Auto Trait Implementations§
impl Forget for HandshakeBodyCaptureState
impl Freeze for HandshakeBodyCaptureState
impl Move for HandshakeBodyCaptureState
impl RefUnwindSafe for HandshakeBodyCaptureState
impl Send for HandshakeBodyCaptureState
impl Sync for HandshakeBodyCaptureState
impl Unpin for HandshakeBodyCaptureState
impl UnsafeUnpin for HandshakeBodyCaptureState
impl UnwindSafe for HandshakeBodyCaptureState
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