#[non_exhaustive]pub struct CallSecurity {
pub state: String,
pub epoch: Option<u64>,
pub since_ms: Option<u64>,
pub show_after_ms: Option<u64>,
pub reason: Option<String>,
pub code: Option<String>,
}Expand description
The call’s end-to-end key state and its security code, as the keys report them
(CallEvent::Security, CallSnapshot::security). Ids, an epoch and a code only: no
key material.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.state: StringThe key state: preparing, joining, active, securing, recovering,
device_not_enrolled, server_identity_changed, unsupported, failed or left.
epoch: Option<u64>The active epoch (with active).
since_ms: Option<u64>Since when the keys are in this state (the key session’s clock, ms).
show_after_ms: Option<u64>With securing: show “Securing…” only this long after since_ms.
reason: Option<String>Why (recovering, unsupported, failed, left).
code: Option<String>The active epoch’s security code, six groups of five digits separated by spaces
("01234 56789 …"), the same on every device in the epoch. None before an epoch is
active, or when Sew’s policy hides it.
Implementations§
Source§impl CallSecurity
impl CallSecurity
Trait Implementations§
Source§impl Clone for CallSecurity
impl Clone for CallSecurity
Source§impl Debug for CallSecurity
impl Debug for CallSecurity
Source§impl Default for CallSecurity
impl Default for CallSecurity
impl Eq for CallSecurity
Source§impl PartialEq for CallSecurity
impl PartialEq for CallSecurity
Source§impl Serialize for CallSecurity
impl Serialize for CallSecurity
impl StructuralPartialEq for CallSecurity
Auto Trait Implementations§
impl Forget for CallSecurity
impl Freeze for CallSecurity
impl Move for CallSecurity
impl RefUnwindSafe for CallSecurity
impl Send for CallSecurity
impl Sync for CallSecurity
impl Unpin for CallSecurity
impl UnsafeUnpin for CallSecurity
impl UnwindSafe for CallSecurity
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CryptoSafe for T
impl<T> CryptoSafe for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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