pub enum EncryptionState {
Encrypted,
NotEncrypted,
Unknown,
}
Expand description
Represents the state of a room encryption.
Variants§
Encrypted
The room is encrypted.
NotEncrypted
The room is not encrypted.
Unknown
The state of the room encryption is unknown, probably because the
/sync
did not provide all data needed to decide.
Implementations§
Source§impl EncryptionState
impl EncryptionState
Sourcepub fn is_encrypted(&self) -> bool
pub fn is_encrypted(&self) -> bool
Check whether EncryptionState
is Encrypted
.
Sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Check whether EncryptionState
is Unknown
.
Trait Implementations§
Source§impl<UT> ConvertError<UT> for EncryptionState
impl<UT> ConvertError<UT> for EncryptionState
Source§impl Debug for EncryptionState
impl Debug for EncryptionState
Source§impl<UT> FfiConverter<UT> for EncryptionState
impl<UT> FfiConverter<UT> for EncryptionState
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Type ID metadata, serialized into a MetadataBuffer.
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
The low-level type used for passing values of this type over the FFI. Read more
Source§fn lower(v: EncryptionState) -> RustBuffer
fn lower(v: EncryptionState) -> RustBuffer
Lower a rust value of the target type, into an FFI value of type Self::FfiType. Read more
Source§fn try_lift(buf: RustBuffer) -> Result<EncryptionState, Error>
fn try_lift(buf: RustBuffer) -> Result<EncryptionState, Error>
Lift a rust value of the target type, from an FFI value of type Self::FfiType. Read more
Source§impl<UT> Lift<UT> for EncryptionState
impl<UT> Lift<UT> for EncryptionState
type FfiType = <EncryptionState as FfiConverter<UT>>::FfiType
fn try_lift( v: <EncryptionState as Lift<UT>>::FfiType, ) -> Result<EncryptionState, Error>
fn try_read(buf: &mut &[u8]) -> Result<EncryptionState, Error>
Source§fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
Convenience method
Source§impl<UT> LiftRef<UT> for EncryptionState
impl<UT> LiftRef<UT> for EncryptionState
type LiftType = EncryptionState
Source§impl<UT> LiftReturn<UT> for EncryptionState
impl<UT> LiftReturn<UT> for EncryptionState
Source§type ReturnType = <EncryptionState as Lift<UT>>::FfiType
type ReturnType = <EncryptionState as Lift<UT>>::FfiType
FFI return type for trait interfaces
Source§fn try_lift_successful_return(
v: <EncryptionState as LiftReturn<UT>>::ReturnType,
) -> Result<EncryptionState, Error>
fn try_lift_successful_return( v: <EncryptionState as LiftReturn<UT>>::ReturnType, ) -> Result<EncryptionState, Error>
Lift a successfully returned value from a trait interface
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
Lift a foreign returned value from a trait interface Read more
Source§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
Lift a Rust value for a callback interface method error result Read more
Source§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Lift a Rust value for an unexpected callback interface error Read more
Source§impl<UT> Lower<UT> for EncryptionState
impl<UT> Lower<UT> for EncryptionState
type FfiType = <EncryptionState as FfiConverter<UT>>::FfiType
fn lower(obj: EncryptionState) -> <EncryptionState as Lower<UT>>::FfiType
fn write(obj: EncryptionState, buf: &mut Vec<u8>)
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Convenience method
Source§impl<UT> LowerError<UT> for EncryptionState
impl<UT> LowerError<UT> for EncryptionState
Source§fn lower_error(obj: EncryptionState) -> RustBuffer
fn lower_error(obj: EncryptionState) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for EncryptionState
impl<UT> LowerReturn<UT> for EncryptionState
Source§type ReturnType = <EncryptionState as Lower<UT>>::FfiType
type ReturnType = <EncryptionState as Lower<UT>>::FfiType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(
obj: EncryptionState,
) -> Result<<EncryptionState as LowerReturn<UT>>::ReturnType, RustBuffer>
fn lower_return( obj: EncryptionState, ) -> Result<<EncryptionState as LowerReturn<UT>>::ReturnType, RustBuffer>
Lower this value for scaffolding function return Read more
Source§impl<UT> TypeId<UT> for EncryptionState
impl<UT> TypeId<UT> for EncryptionState
Auto Trait Implementations§
impl Freeze for EncryptionState
impl RefUnwindSafe for EncryptionState
impl Send for EncryptionState
impl Sync for EncryptionState
impl Unpin for EncryptionState
impl UnwindSafe for EncryptionState
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<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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