Enum sentry_types::protocol::v7::Context [−][src]
pub enum Context { Device(Box<DeviceContext>), Os(Box<OsContext>), Runtime(Box<RuntimeContext>), App(Box<AppContext>), Browser(Box<BrowserContext>), Other(Map<String, Value>), }
Typed contextual data.
Types like OsContext
can be directly converted with .into()
to Context
.
Variants
Device(Box<DeviceContext>)
Device data.
Os(Box<OsContext>)
Operating system data.
Runtime(Box<RuntimeContext>)
Runtime data.
App(Box<AppContext>)
Application data.
Browser(Box<BrowserContext>)
Web browser data.
Other(Map<String, Value>)
Generic other context data.
Methods
impl Context
[src]
impl Context
Trait Implementations
impl Debug for Context
[src]
impl Debug for Context
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Context
[src]
impl Clone for Context
fn clone(&self) -> Context
[src]
fn clone(&self) -> Context
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Context
[src]
impl PartialEq for Context
fn eq(&self, other: &Context) -> bool
[src]
fn eq(&self, other: &Context) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Context) -> bool
[src]
fn ne(&self, other: &Context) -> bool
This method tests for !=
.
impl From<AppContext> for Context
[src]
impl From<AppContext> for Context
fn from(data: AppContext) -> Self
[src]
fn from(data: AppContext) -> Self
Performs the conversion.
impl From<DeviceContext> for Context
[src]
impl From<DeviceContext> for Context
fn from(data: DeviceContext) -> Self
[src]
fn from(data: DeviceContext) -> Self
Performs the conversion.
impl From<OsContext> for Context
[src]
impl From<OsContext> for Context
impl From<RuntimeContext> for Context
[src]
impl From<RuntimeContext> for Context
fn from(data: RuntimeContext) -> Self
[src]
fn from(data: RuntimeContext) -> Self
Performs the conversion.
impl From<BrowserContext> for Context
[src]
impl From<BrowserContext> for Context
fn from(data: BrowserContext) -> Self
[src]
fn from(data: BrowserContext) -> Self
Performs the conversion.