Struct ApplicationError
pub struct ApplicationError {Show 13 fields
pub envelope_version: u32,
pub code: i32,
pub category: i32,
pub recovery_action: i32,
pub operation: i32,
pub contract_lineage: Option<String>,
pub contract_version: Option<u64>,
pub operation_symbol: Option<String>,
pub symbol_path: Vec<String>,
pub source_span: Option<SourceSpan>,
pub fixes: Vec<i32>,
pub trace_id: Option<Vec<u8>>,
pub incident_id: Option<Vec<u8>>,
}Fields§
§envelope_version: u32§code: i32§category: i32§recovery_action: i32§operation: i32§contract_lineage: Option<String>§contract_version: Option<u64>§operation_symbol: Option<String>§symbol_path: Vec<String>§source_span: Option<SourceSpan>§fixes: Vec<i32>§trace_id: Option<Vec<u8>>§incident_id: Option<Vec<u8>>Implementations§
§impl ApplicationError
impl ApplicationError
pub fn code(&self) -> ApplicationErrorCode
pub fn code(&self) -> ApplicationErrorCode
Returns the enum value of code, or the default if the field is set to an invalid enum value.
pub fn set_code(&mut self, value: ApplicationErrorCode)
pub fn set_code(&mut self, value: ApplicationErrorCode)
Sets code to the provided enum value.
pub fn category(&self) -> ApplicationErrorCategory
pub fn category(&self) -> ApplicationErrorCategory
Returns the enum value of category, or the default if the field is set to an invalid enum value.
pub fn set_category(&mut self, value: ApplicationErrorCategory)
pub fn set_category(&mut self, value: ApplicationErrorCategory)
Sets category to the provided enum value.
pub fn recovery_action(&self) -> ApplicationRecoveryAction
pub fn recovery_action(&self) -> ApplicationRecoveryAction
Returns the enum value of recovery_action, or the default if the field is set to an invalid enum value.
pub fn set_recovery_action(&mut self, value: ApplicationRecoveryAction)
pub fn set_recovery_action(&mut self, value: ApplicationRecoveryAction)
Sets recovery_action to the provided enum value.
pub fn operation(&self) -> ApplicationOperation
pub fn operation(&self) -> ApplicationOperation
Returns the enum value of operation, or the default if the field is set to an invalid enum value.
pub fn set_operation(&mut self, value: ApplicationOperation)
pub fn set_operation(&mut self, value: ApplicationOperation)
Sets operation to the provided enum value.
pub fn contract_lineage(&self) -> &str
pub fn contract_lineage(&self) -> &str
Returns the value of contract_lineage, or the default value if contract_lineage is unset.
pub fn contract_version(&self) -> u64
pub fn contract_version(&self) -> u64
Returns the value of contract_version, or the default value if contract_version is unset.
pub fn operation_symbol(&self) -> &str
pub fn operation_symbol(&self) -> &str
Returns the value of operation_symbol, or the default value if operation_symbol is unset.
pub fn fixes(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<ApplicationFixCode>>
pub fn fixes( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<ApplicationFixCode>>
Returns an iterator which yields the valid enum values contained in fixes.
pub fn push_fixes(&mut self, value: ApplicationFixCode)
pub fn push_fixes(&mut self, value: ApplicationFixCode)
Appends the provided enum value to fixes.
pub fn trace_id(&self) -> &[u8] ⓘ
pub fn trace_id(&self) -> &[u8] ⓘ
Returns the value of trace_id, or the default value if trace_id is unset.
pub fn incident_id(&self) -> &[u8] ⓘ
pub fn incident_id(&self) -> &[u8] ⓘ
Returns the value of incident_id, or the default value if incident_id is unset.
Trait Implementations§
§impl Clone for ApplicationError
impl Clone for ApplicationError
§fn clone(&self) -> ApplicationError
fn clone(&self) -> ApplicationError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for ApplicationError
impl Debug for ApplicationError
§impl Default for ApplicationError
impl Default for ApplicationError
§fn default() -> ApplicationError
fn default() -> ApplicationError
impl Eq for ApplicationError
§impl Hash for ApplicationError
impl Hash for ApplicationError
§impl Message for ApplicationError
impl Message for ApplicationError
§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.§impl PartialEq for ApplicationError
impl PartialEq for ApplicationError
§fn eq(&self, other: &ApplicationError) -> bool
fn eq(&self, other: &ApplicationError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApplicationError
Auto Trait Implementations§
impl Freeze for ApplicationError
impl RefUnwindSafe for ApplicationError
impl Send for ApplicationError
impl Sync for ApplicationError
impl Unpin for ApplicationError
impl UnsafeUnpin for ApplicationError
impl UnwindSafe for ApplicationError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].