pub struct RuntimeContext {
pub runtime: Annotated<String>,
pub name: Annotated<String>,
pub version: Annotated<String>,
pub build: Annotated<LenientString>,
pub raw_description: Annotated<String>,
pub other: Object<Value>,
}
Expand description
Runtime information.
Runtime context describes a runtime in more detail. Typically, this context is present in
contexts
multiple times if multiple runtimes are involved (for instance, if you have a
JavaScript application running on top of JVM).
Fields§
§runtime: Annotated<String>
Computed field from name
and version
. Needed by the metrics extraction.
name: Annotated<String>
Runtime name.
version: Annotated<String>
Runtime version string.
build: Annotated<LenientString>
Application build string, if it is separate from the version.
raw_description: Annotated<String>
Unprocessed runtime info.
An unprocessed description string obtained by the runtime. For some well-known runtimes,
Sentry will attempt to parse name
and version
from this string, if they are not
explicitly given.
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
Trait Implementations§
source§impl Clone for RuntimeContext
impl Clone for RuntimeContext
source§fn clone(&self) -> RuntimeContext
fn clone(&self) -> RuntimeContext
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 RuntimeContext
impl Debug for RuntimeContext
source§impl Default for RuntimeContext
impl Default for RuntimeContext
source§fn default() -> RuntimeContext
fn default() -> RuntimeContext
Returns the “default value” for a type. Read more
source§impl DefaultContext for RuntimeContext
impl DefaultContext for RuntimeContext
source§fn default_key() -> &'static str
fn default_key() -> &'static str
The default key at which this context resides in
Contexts
.source§fn from_context(context: Context) -> Option<Self>
fn from_context(context: Context) -> Option<Self>
Converts this context type from a generic context type. Read more
source§fn cast(context: &Context) -> Option<&Self>
fn cast(context: &Context) -> Option<&Self>
Casts a reference to this context type from a generic context type. Read more
source§fn cast_mut(context: &mut Context) -> Option<&mut Self>
fn cast_mut(context: &mut Context) -> Option<&mut Self>
Casts a mutable reference to this context type from a generic context type. Read more
source§fn into_context(self) -> Context
fn into_context(self) -> Context
Boxes this context type in the generic context wrapper. Read more
source§impl Empty for RuntimeContext
impl Empty for RuntimeContext
source§impl FromValue for RuntimeContext
impl FromValue for RuntimeContext
source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
Creates a meta structure from an annotated boxed value.
source§impl IntoValue for RuntimeContext
impl IntoValue for RuntimeContext
source§fn into_value(self) -> Value
fn into_value(self) -> Value
Boxes the meta structure back into a value.
source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Efficiently serializes the payload directly.
source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
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 RuntimeContext
impl PartialEq for RuntimeContext
source§impl ProcessValue for RuntimeContext
impl ProcessValue for RuntimeContext
source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
Returns the type of the value.
source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Executes a processor on this value.
source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Recurses into children of this value.
impl StructuralPartialEq for RuntimeContext
Auto Trait Implementations§
impl Freeze for RuntimeContext
impl RefUnwindSafe for RuntimeContext
impl Send for RuntimeContext
impl Sync for RuntimeContext
impl Unpin for RuntimeContext
impl UnwindSafe for RuntimeContext
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)