pub enum UndeliverableReason {
Transport(TransportFailure),
PortGone(PortGone),
}Expand description
A non-invalid-reference delivery failure.
Variants§
Transport(TransportFailure)
Delivery failed while carrying the message.
PortGone(PortGone)
The destination port’s ordinary recipient is gone.
Implementations§
Source§impl UndeliverableReason
impl UndeliverableReason
Sourcepub fn is_transport(&self) -> bool
pub fn is_transport(&self) -> bool
Returns true if this is a UndeliverableReason::Transport, otherwise false
Sourcepub fn as_transport_mut(&mut self) -> Option<&mut TransportFailure>
pub fn as_transport_mut(&mut self) -> Option<&mut TransportFailure>
Optionally returns mutable references to the inner fields if this is a UndeliverableReason::Transport, otherwise None
Sourcepub fn as_transport(&self) -> Option<&TransportFailure>
pub fn as_transport(&self) -> Option<&TransportFailure>
Optionally returns references to the inner fields if this is a UndeliverableReason::Transport, otherwise None
Sourcepub fn into_transport(self) -> Result<TransportFailure, Self>
pub fn into_transport(self) -> Result<TransportFailure, Self>
Returns the inner fields if this is a UndeliverableReason::Transport, otherwise returns back the enum in the Err case of the result
Sourcepub fn is_port_gone(&self) -> bool
pub fn is_port_gone(&self) -> bool
Returns true if this is a UndeliverableReason::PortGone, otherwise false
Sourcepub fn as_port_gone_mut(&mut self) -> Option<&mut PortGone>
pub fn as_port_gone_mut(&mut self) -> Option<&mut PortGone>
Optionally returns mutable references to the inner fields if this is a UndeliverableReason::PortGone, otherwise None
Sourcepub fn as_port_gone(&self) -> Option<&PortGone>
pub fn as_port_gone(&self) -> Option<&PortGone>
Optionally returns references to the inner fields if this is a UndeliverableReason::PortGone, otherwise None
Sourcepub fn into_port_gone(self) -> Result<PortGone, Self>
pub fn into_port_gone(self) -> Result<PortGone, Self>
Returns the inner fields if this is a UndeliverableReason::PortGone, otherwise returns back the enum in the Err case of the result
Trait Implementations§
Source§impl Clone for UndeliverableReason
impl Clone for UndeliverableReason
Source§fn clone(&self) -> UndeliverableReason
fn clone(&self) -> UndeliverableReason
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UndeliverableReason
impl Debug for UndeliverableReason
Source§impl<'de> Deserialize<'de> for UndeliverableReason
impl<'de> Deserialize<'de> for UndeliverableReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for UndeliverableReason
impl Display for UndeliverableReason
Source§impl Error for UndeliverableReason
impl Error for UndeliverableReason
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<PortGone> for UndeliverableReason
impl From<PortGone> for UndeliverableReason
Source§impl From<TransportFailure> for UndeliverableReason
impl From<TransportFailure> for UndeliverableReason
Source§fn from(source: TransportFailure) -> Self
fn from(source: TransportFailure) -> Self
Source§impl From<UndeliverableReason> for DeliveryFailureKind
impl From<UndeliverableReason> for DeliveryFailureKind
Source§fn from(source: UndeliverableReason) -> Self
fn from(source: UndeliverableReason) -> Self
Source§impl PartialEq for UndeliverableReason
impl PartialEq for UndeliverableReason
Source§impl Serialize for UndeliverableReason
impl Serialize for UndeliverableReason
impl Eq for UndeliverableReason
impl StructuralPartialEq for UndeliverableReason
Auto Trait Implementations§
impl Freeze for UndeliverableReason
impl RefUnwindSafe for UndeliverableReason
impl Send for UndeliverableReason
impl Sync for UndeliverableReason
impl Unpin for UndeliverableReason
impl UnsafeUnpin for UndeliverableReason
impl UnwindSafe for UndeliverableReason
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<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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§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].