pub struct SessionSecurity {
session: WeakRef<Session>,
crypto_identity_state: Cell<CryptoIdentityState>,
verification_state: Cell<SessionVerificationState>,
recovery_state: Cell<RecoveryState>,
cross_signing_keys_available: Cell<bool>,
backup_enabled: Cell<bool>,
backup_exists_on_server: Cell<bool>,
abort_handles: RefCell<Vec<AbortHandle>>,
}
Fields§
§session: WeakRef<Session>
The current session.
crypto_identity_state: Cell<CryptoIdentityState>
The state of the crypto identity for the current session.
verification_state: Cell<SessionVerificationState>
The state of the verification for the current session.
recovery_state: Cell<RecoveryState>
The state of recovery for the current session.
cross_signing_keys_available: Cell<bool>
Whether all the cross-signing keys are available.
backup_enabled: Cell<bool>
Whether the room keys backup is enabled.
backup_exists_on_server: Cell<bool>
Whether the room keys backup exists on the homeserver.
abort_handles: RefCell<Vec<AbortHandle>>
Implementations§
Source§impl SessionSecurity
impl SessionSecurity
Sourcefn register_type()
fn register_type()
Registers the type only once.
Source§impl SessionSecurity
impl SessionSecurity
Sourcefn set_session(&self, session: Option<&Session>)
fn set_session(&self, session: Option<&Session>)
Set the current session.
Sourcepub(super) fn set_crypto_identity_state(&self, state: CryptoIdentityState)
pub(super) fn set_crypto_identity_state(&self, state: CryptoIdentityState)
Set the crypto identity state of the current session.
Sourcepub(super) fn set_verification_state(&self, state: SessionVerificationState)
pub(super) fn set_verification_state(&self, state: SessionVerificationState)
Set the verification state of the current session.
Sourcepub(super) fn set_recovery_state(&self, state: RecoveryState)
pub(super) fn set_recovery_state(&self, state: RecoveryState)
Set the recovery state of the current session.
Sourcepub(super) fn set_cross_signing_keys_available(&self, available: bool)
pub(super) fn set_cross_signing_keys_available(&self, available: bool)
Set whether all the cross-signing keys are available.
Sourcepub(super) fn set_backup_enabled(&self, enabled: bool)
pub(super) fn set_backup_enabled(&self, enabled: bool)
Set whether the room keys backup is enabled.
Sourcepub(super) fn set_backup_exists_on_server(&self, exists: bool)
pub(super) fn set_backup_exists_on_server(&self, exists: bool)
Set whether the room keys backup existson the homeserver.
Sourceasync fn watch_crypto_identity_state(&self)
async fn watch_crypto_identity_state(&self)
Listen to crypto identity changes.
Sourceasync fn load_crypto_identity_state(&self)
async fn load_crypto_identity_state(&self)
Load the crypto identity state.
Sourcefn watch_verification_state(&self)
fn watch_verification_state(&self)
Listen to verification state changes.
Sourcefn watch_recovery_state(&self)
fn watch_recovery_state(&self)
Listen to recovery state changes.
Sourceasync fn update_recovery_state(&self, state: RecoveryState)
async fn update_recovery_state(&self, state: RecoveryState)
Update the session for the given recovery state.
Trait Implementations§
Source§impl Debug for SessionSecurity
impl Debug for SessionSecurity
Source§impl Default for SessionSecurity
impl Default for SessionSecurity
Source§fn default() -> SessionSecurity
fn default() -> SessionSecurity
Source§impl DerivedObjectProperties for SessionSecurity
impl DerivedObjectProperties for SessionSecurity
Source§fn derived_properties() -> &'static [ParamSpec]
fn derived_properties() -> &'static [ParamSpec]
Source§fn derived_property(&self, id: usize, pspec: &ParamSpec) -> Value
fn derived_property(&self, id: usize, pspec: &ParamSpec) -> Value
ObjectImpl
but auto-generated by the Properties
macro
to allow handling more complex use-cases.Source§fn derived_set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
fn derived_set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
ObjectImpl
but auto-generated by the Properties
macro
to allow handling more complex use-cases.Source§impl ObjectImpl for SessionSecurity
impl ObjectImpl for SessionSecurity
Source§fn properties() -> &'static [ParamSpec]
fn properties() -> &'static [ParamSpec]
Source§fn set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
fn set_property(&self, id: usize, value: &Value, pspec: &ParamSpec)
Source§fn constructed(&self)
fn constructed(&self)
Source§fn notify(&self, pspec: &ParamSpec)
fn notify(&self, pspec: &ParamSpec)
self.notify("property")
.fn dispatch_properties_changed(&self, pspecs: &[ParamSpec])
Source§impl ObjectSubclass for SessionSecurity
impl ObjectSubclass for SessionSecurity
Source§type ParentType = Object
type ParentType = Object
Source§type Interfaces = ()
type Interfaces = ()
Source§type Class = ClassStruct<SessionSecurity>
type Class = ClassStruct<SessionSecurity>
Source§type Instance = InstanceStruct<SessionSecurity>
type Instance = InstanceStruct<SessionSecurity>
Source§type Type = SessionSecurity
type Type = SessionSecurity
wrapper!
Source§const ALLOW_NAME_CONFLICT: bool = false
const ALLOW_NAME_CONFLICT: bool = false
Source§fn type_init(_type_: &mut InitializingType<Self>)
fn type_init(_type_: &mut InitializingType<Self>)
Source§fn class_init(_klass: &mut Self::Class)
fn class_init(_klass: &mut Self::Class)
Source§fn with_class(_klass: &Self::Class) -> Self
fn with_class(_klass: &Self::Class) -> Self
Source§fn instance_init(_obj: &InitializingObject<Self>)
fn instance_init(_obj: &InitializingObject<Self>)
Auto Trait Implementations§
impl !Freeze for SessionSecurity
impl !RefUnwindSafe for SessionSecurity
impl !Send for SessionSecurity
impl !Sync for SessionSecurity
impl Unpin for SessionSecurity
impl !UnwindSafe for SessionSecurity
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
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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>
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>
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 moreSource§impl<T> ObjectImplExt for Twhere
T: ObjectImpl,
impl<T> ObjectImplExt for Twhere
T: ObjectImpl,
Source§fn parent_constructed(&self)
fn parent_constructed(&self)
glib::Object::constructed()
.Source§fn parent_notify(&self, pspec: &ParamSpec)
fn parent_notify(&self, pspec: &ParamSpec)
glib::Object::notify()
.Source§fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])
fn parent_dispatch_properties_changed(&self, pspecs: &[ParamSpec])
glib::Object::dispatch_properties_changed()
.Source§fn signal_chain_from_overridden(
&self,
token: &SignalClassHandlerToken,
values: &[Value],
) -> Option<Value>
fn signal_chain_from_overridden( &self, token: &SignalClassHandlerToken, values: &[Value], ) -> Option<Value>
Source§impl<T> ObjectSubclassExt for Twhere
T: ObjectSubclass,
impl<T> ObjectSubclassExt for Twhere
T: ObjectSubclass,
Source§fn instance(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
fn instance(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
Source§fn from_instance(obj: &<T as ObjectSubclass>::Type) -> &T
fn from_instance(obj: &<T as ObjectSubclass>::Type) -> &T
Source§fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
fn obj(&self) -> BorrowedObject<'_, <T as ObjectSubclass>::Type>
Source§fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T
fn from_obj(obj: &<T as ObjectSubclass>::Type) -> &T
Source§fn ref_counted(&self) -> ObjectImplRef<T>
fn ref_counted(&self) -> ObjectImplRef<T>
self
.