Enum ExpectResult
pub enum ExpectResult {
Continue(Expect),
Failed(Expect, StatusCode, HeaderMap),
}Expand description
Result of the Control::Expect event.
Variants§
Continue(Expect)
Send 100 Continue and process the request.
Failed(Expect, StatusCode, HeaderMap)
Complete the request with the response status and headers.
Trait Implementations§
§impl Clone for ExpectResult
impl Clone for ExpectResult
§fn clone(&self) -> ExpectResult
fn clone(&self) -> ExpectResult
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ExpectResult
impl !Send for ExpectResult
impl !Sync for ExpectResult
impl !UnwindSafe for ExpectResult
impl Freeze for ExpectResult
impl Unpin for ExpectResult
impl UnsafeUnpin for ExpectResult
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