pub enum ResponseKind {
DropConnection,
GetBodyAndReprocess(u64),
Normal,
}Variants§
DropConnection
GetBodyAndReprocess(u64)
GetBodyAndReprocess(max_len: u64)
Read the body from the client, but only up to the specified u64 bytes.
Normal
Trait Implementations§
Source§impl Clone for ResponseKind
impl Clone for ResponseKind
Source§fn clone(&self) -> ResponseKind
fn clone(&self) -> ResponseKind
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 ResponseKind
impl Debug for ResponseKind
Source§impl Hash for ResponseKind
impl Hash for ResponseKind
Source§impl Ord for ResponseKind
impl Ord for ResponseKind
Source§fn cmp(&self, other: &ResponseKind) -> Ordering
fn cmp(&self, other: &ResponseKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResponseKind
impl PartialEq for ResponseKind
Source§fn eq(&self, other: &ResponseKind) -> bool
fn eq(&self, other: &ResponseKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ResponseKind
impl PartialOrd for ResponseKind
impl Copy for ResponseKind
impl Eq for ResponseKind
impl StructuralPartialEq for ResponseKind
Auto Trait Implementations§
impl Freeze for ResponseKind
impl RefUnwindSafe for ResponseKind
impl Send for ResponseKind
impl Sync for ResponseKind
impl Unpin for ResponseKind
impl UnsafeUnpin for ResponseKind
impl UnwindSafe for ResponseKind
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