Enum sentry_types::protocol::v7::Context [−][src]
#[non_exhaustive]
pub enum Context {
Device(Box<DeviceContext>),
Os(Box<OsContext>),
Runtime(Box<RuntimeContext>),
App(Box<AppContext>),
Browser(Box<BrowserContext>),
Trace(Box<TraceContext>),
Other(Map<String, Value>),
}Expand description
Typed contextual data.
Types like OsContext can be directly converted with .into()
to Context.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Device(Box<DeviceContext>)Device data.
Operating system data.
Runtime(Box<RuntimeContext>)Runtime data.
App(Box<AppContext>)Application data.
Browser(Box<BrowserContext>)Web browser data.
Trace(Box<TraceContext>)Tracing data.
Generic other context data.
Implementations
Trait Implementations
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>, Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Contextimpl UnwindSafe for ContextBlanket Implementations
Mutably borrows from an owned value. Read more