Struct sentry::protocol::Context [] [src]

pub struct Context {
    pub data: ContextData,
    pub extra: LinkedHashMap<String, Value, RandomState>,
}

General context data.

The data can be either typed (ContextData) or be filled in as unhandled attributes in extra. If completely arbitrary data should be used the typed data can be set to ContextData::Default in which case no key is well known.

Types like OsContext can be directly converted with .into() to Context or ContextData.

Fields

Typed context data.

Additional keys sent along not known to the context type.

Trait Implementations

impl PartialEq<Context> for Context
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl From<DeviceContext> for Context
[src]

[src]

Performs the conversion.

impl From<ContextData> for Context
[src]

[src]

Performs the conversion.

impl From<RuntimeContext> for Context
[src]

[src]

Performs the conversion.

impl From<LinkedHashMap<String, Value, RandomState>> for Context
[src]

[src]

Performs the conversion.

impl From<BrowserContext> for Context
[src]

[src]

Performs the conversion.

impl From<AppContext> for Context
[src]

[src]

Performs the conversion.

impl From<OsContext> for Context
[src]

[src]

Performs the conversion.

impl Clone for Context
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Context
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Context
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Context

impl Sync for Context