pub enum StatusAction {
Proceed,
StreamLost,
Redirect,
Fail,
}Expand description
What a client does with a status code. SPEC.md 4.5.
Variants§
Proceed
Read the answer headers and continue.
StreamLost
Treat the stream as lost, then resolve again.
Redirect
Treat this as a redirect, which also marks the stream lost.
Fail
Raise an error.
Trait Implementations§
Source§impl Clone for StatusAction
impl Clone for StatusAction
Source§fn clone(&self) -> StatusAction
fn clone(&self) -> StatusAction
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 StatusAction
Source§impl Debug for StatusAction
impl Debug for StatusAction
impl Eq for StatusAction
Source§impl PartialEq for StatusAction
impl PartialEq for StatusAction
impl StructuralPartialEq for StatusAction
Auto Trait Implementations§
impl Freeze for StatusAction
impl RefUnwindSafe for StatusAction
impl Send for StatusAction
impl Sync for StatusAction
impl Unpin for StatusAction
impl UnsafeUnpin for StatusAction
impl UnwindSafe for StatusAction
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