pub enum MlsLifecycleEvent {
Initialized {
timestamp_ms: i64,
session_id: String,
group_id: Option<String>,
peer_id: Option<String>,
context: MlsOperationContext,
error_category: Option<MlsErrorCategory>,
},
EncryptionUsed {
timestamp_ms: i64,
session_id: String,
group_id: Option<String>,
peer_id: Option<String>,
context: MlsOperationContext,
error_category: Option<MlsErrorCategory>,
},
DecryptionFailed {
timestamp_ms: i64,
session_id: String,
group_id: Option<String>,
peer_id: Option<String>,
context: MlsOperationContext,
error_category: Option<MlsErrorCategory>,
failure_kind: DecryptionFailureKind,
},
SessionMissing {
timestamp_ms: i64,
session_id: String,
group_id: Option<String>,
peer_id: Option<String>,
context: MlsOperationContext,
error_category: Option<MlsErrorCategory>,
},
SessionReady {
timestamp_ms: i64,
session_id: String,
group_id: Option<String>,
peer_id: Option<String>,
context: MlsOperationContext,
error_category: Option<MlsErrorCategory>,
},
}Expand description
Typed MLS lifecycle events for operational observability.
Variants§
Initialized
MLS subsystem has been initialized and is ready for use.
EncryptionUsed
Encryption path was successfully used.
DecryptionFailed
Decryption failed with a typed failure class.
Fields
§
context: MlsOperationContext§
error_category: Option<MlsErrorCategory>§
failure_kind: DecryptionFailureKindSessionMissing
Session lookup failed or session/group state is missing.
SessionReady
Session lifecycle has reached a ready/usable state.
Implementations§
Source§impl MlsLifecycleEvent
impl MlsLifecycleEvent
Sourcepub fn telemetry_name(&self) -> &'static str
pub fn telemetry_name(&self) -> &'static str
Returns the stable snake.dot.case telemetry name for this event.
Names are compatible with OpenTelemetry naming conventions and are considered stable across minor versions of the SDK.
Trait Implementations§
Source§impl Clone for MlsLifecycleEvent
impl Clone for MlsLifecycleEvent
Source§fn clone(&self) -> MlsLifecycleEvent
fn clone(&self) -> MlsLifecycleEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MlsLifecycleEvent
impl Debug for MlsLifecycleEvent
impl Eq for MlsLifecycleEvent
Source§impl PartialEq for MlsLifecycleEvent
impl PartialEq for MlsLifecycleEvent
Source§impl Serialize for MlsLifecycleEvent
impl Serialize for MlsLifecycleEvent
impl StructuralPartialEq for MlsLifecycleEvent
Auto Trait Implementations§
impl Freeze for MlsLifecycleEvent
impl RefUnwindSafe for MlsLifecycleEvent
impl Send for MlsLifecycleEvent
impl Sync for MlsLifecycleEvent
impl Unpin for MlsLifecycleEvent
impl UnsafeUnpin for MlsLifecycleEvent
impl UnwindSafe for MlsLifecycleEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more