pub struct FallbackInfo {
pub routing_mode: i32,
pub reason: i32,
}
Expand description
Information related to how and why a fallback result was used. If this field is set, then it means the server used a different routing mode from your preferred mode as fallback.
Fields§
§routing_mode: i32
Routing mode used for the response. If fallback was triggered, the mode may be different from routing preference set in the original client request.
reason: i32
The reason why fallback response was used instead of the original response. This field is only populated when the fallback mode is triggered and the fallback response is returned.
Implementations§
Source§impl FallbackInfo
impl FallbackInfo
Sourcepub fn routing_mode(&self) -> FallbackRoutingMode
pub fn routing_mode(&self) -> FallbackRoutingMode
Returns the enum value of routing_mode
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_routing_mode(&mut self, value: FallbackRoutingMode)
pub fn set_routing_mode(&mut self, value: FallbackRoutingMode)
Sets routing_mode
to the provided enum value.
Sourcepub fn reason(&self) -> FallbackReason
pub fn reason(&self) -> FallbackReason
Returns the enum value of reason
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_reason(&mut self, value: FallbackReason)
pub fn set_reason(&mut self, value: FallbackReason)
Sets reason
to the provided enum value.
Trait Implementations§
Source§impl Clone for FallbackInfo
impl Clone for FallbackInfo
Source§fn clone(&self) -> FallbackInfo
fn clone(&self) -> FallbackInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FallbackInfo
impl Debug for FallbackInfo
Source§impl Default for FallbackInfo
impl Default for FallbackInfo
Source§fn default() -> FallbackInfo
fn default() -> FallbackInfo
Source§impl Message for FallbackInfo
impl Message for FallbackInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl PartialEq for FallbackInfo
impl PartialEq for FallbackInfo
impl Copy for FallbackInfo
impl StructuralPartialEq for FallbackInfo
Auto Trait Implementations§
impl Freeze for FallbackInfo
impl RefUnwindSafe for FallbackInfo
impl Send for FallbackInfo
impl Sync for FallbackInfo
impl Unpin for FallbackInfo
impl UnwindSafe for FallbackInfo
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