#[repr(i32)]pub enum ResponseStatus {
Continue = 0,
ContinueAndReplace = 1,
}Variants§
Continue = 0
Apply the mutation instructions in this message to the request or response, and then continue processing the filter stream as normal. This is the default.
ContinueAndReplace = 1
Apply the specified header mutation, replace the body with the body specified in the body mutation (if present), and do not send any further messages for this request or response even if the processing mode is configured to do so.
When used in response to a request_headers or response_headers message, this status makes it possible to either completely replace the body while discarding the original body, or to add a body to a message that formerly did not have one.
In other words, this response makes it possible to turn an HTTP GET into a POST, PUT, or PATCH.
Implementations§
Source§impl ResponseStatus
impl ResponseStatus
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ResponseStatus
impl Clone for ResponseStatus
Source§fn clone(&self) -> ResponseStatus
fn clone(&self) -> ResponseStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResponseStatus
impl Debug for ResponseStatus
Source§impl Default for ResponseStatus
impl Default for ResponseStatus
Source§fn default() -> ResponseStatus
fn default() -> ResponseStatus
Source§impl From<ResponseStatus> for i32
impl From<ResponseStatus> for i32
Source§fn from(value: ResponseStatus) -> i32
fn from(value: ResponseStatus) -> i32
Source§impl Hash for ResponseStatus
impl Hash for ResponseStatus
Source§impl Ord for ResponseStatus
impl Ord for ResponseStatus
Source§fn cmp(&self, other: &ResponseStatus) -> Ordering
fn cmp(&self, other: &ResponseStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ResponseStatus
impl PartialEq for ResponseStatus
Source§impl PartialOrd for ResponseStatus
impl PartialOrd for ResponseStatus
Source§impl TryFrom<i32> for ResponseStatus
impl TryFrom<i32> for ResponseStatus
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<ResponseStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<ResponseStatus, UnknownEnumValue>
impl Copy for ResponseStatus
impl Eq for ResponseStatus
impl StructuralPartialEq for ResponseStatus
Auto Trait Implementations§
impl Freeze for ResponseStatus
impl RefUnwindSafe for ResponseStatus
impl Send for ResponseStatus
impl Sync for ResponseStatus
impl Unpin for ResponseStatus
impl UnwindSafe for ResponseStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request