pub enum ObservationError {
Shutdown,
QueueFull(Box<ErrorContext>),
RoutingFailure(Box<ErrorContext>),
}Expand description
Routing/runtime error returned by Observability::emit.
Variants§
Shutdown
The routing runtime has already been shut down.
QueueFull(Box<ErrorContext>)
The runtime could not accept more observations.
RoutingFailure(Box<ErrorContext>)
No eligible subscriber or projector path handled the observation.
Trait Implementations§
Source§impl Debug for ObservationError
impl Debug for ObservationError
Source§impl<'de> Deserialize<'de> for ObservationError
impl<'de> Deserialize<'de> for ObservationError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ObservationError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ObservationError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ObservationError
impl Display for ObservationError
Source§impl Error for ObservationError
impl Error for ObservationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ObservationError
impl PartialEq for ObservationError
Source§fn eq(&self, other: &ObservationError) -> bool
fn eq(&self, other: &ObservationError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ObservationError
impl Serialize for ObservationError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ObservationError
Auto Trait Implementations§
impl Freeze for ObservationError
impl !RefUnwindSafe for ObservationError
impl Send for ObservationError
impl Sync for ObservationError
impl Unpin for ObservationError
impl UnsafeUnpin for ObservationError
impl !UnwindSafe for ObservationError
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