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
impl JweMetric[src]
impl JweMetric[src]pub fn new(meta: CommonMetricData) -> Self[src]
pub fn new(meta: CommonMetricData) -> Self[src]Creates a new JWE metric.
pub fn set_with_compact_representation<S: Into<String>>(
&self,
glean: &Glean,
value: S
)[src]
pub fn set_with_compact_representation<S: Into<String>>(
&self,
glean: &Glean,
value: S
)[src]Sets to the specified JWE value.
Arguments
glean- the Glean instance this metric belongs to.value- thecompact representationof a JWE value.
pub fn set<S: Into<String>>(
&self,
glean: &Glean,
header: S,
key: S,
init_vector: S,
cipher_text: S,
auth_tag: S
)[src]
pub fn set<S: Into<String>>(
&self,
glean: &Glean,
header: S,
key: S,
init_vector: S,
cipher_text: S,
auth_tag: S
)[src]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.
Trait Implementations
impl MetricType for JweMetric[src]
impl MetricType for JweMetric[src]fn meta(&self) -> &CommonMetricData[src]
fn meta(&self) -> &CommonMetricData[src]Access the stored metadata
fn meta_mut(&mut self) -> &mut CommonMetricData[src]
fn meta_mut(&mut self) -> &mut CommonMetricData[src]Access the stored metadata mutable
fn should_record(&self, glean: &Glean) -> bool[src]
fn should_record(&self, glean: &Glean) -> bool[src]Whether this metric should currently be recorded Read more
Auto Trait Implementations
impl RefUnwindSafe for JweMetric
impl Send for JweMetric
impl Sync for JweMetric
impl Unpin for JweMetric
impl UnwindSafe for JweMetric
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more