Enum sentry_core::protocol::Context
source · [−]#[non_exhaustive]
pub enum Context {
Device(Box<DeviceContext, Global>),
Os(Box<OsContext, Global>),
Runtime(Box<RuntimeContext, Global>),
App(Box<AppContext, Global>),
Browser(Box<BrowserContext, Global>),
Trace(Box<TraceContext, Global>),
Other(BTreeMap<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, Global>)
Device data.
Os(Box<OsContext, Global>)
Operating system data.
Runtime(Box<RuntimeContext, Global>)
Runtime data.
App(Box<AppContext, Global>)
Application data.
Browser(Box<BrowserContext, Global>)
Web browser data.
Trace(Box<TraceContext, Global>)
Tracing data.
Other(BTreeMap<String, Value>)
Generic other context data.
Implementations
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Context, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Context, <__D as Deserializer<'de>>::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.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Auto Trait Implementations
impl RefUnwindSafe for Context
impl UnwindSafe for Context
Blanket Implementations
Mutably borrows from an owned value. Read more