Struct glean_core::metrics::JweMetric [−][src]
pub struct JweMetric { /* fields omitted */ }
Expand description
A JWE metric.
This metric will be work as a “transport” for JWE encrypted data.
The actual encrypti on is done somewhere else, Glean must only make sure the data is valid JWE.
Implementations
Creates a new JWE metric.
Sets to the specified JWE value.
Arguments
glean
- the Glean instance this metric belongs to.value
- thecompact representation
of a JWE value.
Builds a JWE value from its elements and set to it.
Arguments
glean
- the Glean instance this metric belongs to.header
- the JWE Protected Header element.key
- the JWE Encrypted Key element.init_vector
- the JWE Initialization Vector element.cipher_text
- the JWE Ciphertext element.auth_tag
- the JWE Authentication Tag element.
Test-only API (exported for FFI purposes).
Gets the currently stored value as a string.
This doesn’t clear the stored value.
Trait Implementations
Access the stored metadata
Access the stored metadata mutable
Whether this metric should currently be recorded Read more
Auto Trait Implementations
impl RefUnwindSafe for JweMetric
impl UnwindSafe for JweMetric
Blanket Implementations
Mutably borrows from an owned value. Read more