pub enum SpanV2Status {
Ok,
Error,
Other(String),
}
Expand description
Status of a V2 span.
This is a subset of OTEL’s statuses (unset, ok, error), plus a catchall variant for forward compatibility.
Variants§
Ok
The span completed successfully.
Error
The span contains an error.
Other(String)
Catchall variant for forward compatibility.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for SpanV2Status
impl AsRef<str> for SpanV2Status
Source§impl Clone for SpanV2Status
impl Clone for SpanV2Status
Source§fn clone(&self) -> SpanV2Status
fn clone(&self) -> SpanV2Status
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SpanV2Status
impl Debug for SpanV2Status
Source§impl Display for SpanV2Status
impl Display for SpanV2Status
Source§impl Empty for SpanV2Status
impl Empty for SpanV2Status
Source§impl From<String> for SpanV2Status
impl From<String> for SpanV2Status
Source§impl FromValue for SpanV2Status
impl FromValue for SpanV2Status
Source§fn from_value(value: Annotated<Value>) -> Annotated<Self>where
Self: Sized,
fn from_value(value: Annotated<Value>) -> Annotated<Self>where
Self: Sized,
Creates a meta structure from an annotated boxed value.
Source§impl IntoValue for SpanV2Status
impl IntoValue for SpanV2Status
Source§fn into_value(self) -> Valuewhere
Self: Sized,
fn into_value(self) -> Valuewhere
Self: Sized,
Boxes the meta structure back into a value.
Source§fn serialize_payload<S>(
&self,
s: S,
_behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
s: S,
_behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Efficiently serializes the payload directly.
§fn extract_child_meta(&self) -> BTreeMap<String, MetaTree>where
Self: Sized,
fn extract_child_meta(&self) -> BTreeMap<String, MetaTree>where
Self: Sized,
Extracts children meta map out of a value.
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
Extracts the meta tree out of annotated value. Read more
Source§impl PartialEq for SpanV2Status
impl PartialEq for SpanV2Status
Source§impl Serialize for SpanV2Status
impl Serialize for SpanV2Status
impl StructuralPartialEq for SpanV2Status
Auto Trait Implementations§
impl Freeze for SpanV2Status
impl RefUnwindSafe for SpanV2Status
impl Send for SpanV2Status
impl Sync for SpanV2Status
impl Unpin for SpanV2Status
impl UnwindSafe for SpanV2Status
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