Struct matrix_sdk::encryption::CrossSigningResetHandle
source · pub struct CrossSigningResetHandle { /* private fields */ }
Available on crate feature
e2e-encryption
only.Expand description
A stateful struct remembering the cross-signing keys we need to upload.
Since the /_matrix/client/v3/keys/device_signing/upload
might require
additional authentication, this struct will contain information on the type
of authentication the user needs to complete before the upload might be
continued.
More info can be found in the spec.
Implementations§
source§impl CrossSigningResetHandle
impl CrossSigningResetHandle
sourcepub fn new(
client: Client,
upload_request: UploadSigningKeysRequest,
signatures_request: UploadSignaturesRequest,
auth_type: CrossSigningResetAuthType,
) -> Self
pub fn new( client: Client, upload_request: UploadSigningKeysRequest, signatures_request: UploadSignaturesRequest, auth_type: CrossSigningResetAuthType, ) -> Self
Set up a new CrossSigningResetHandle
.
sourcepub fn auth_type(&self) -> &CrossSigningResetAuthType
pub fn auth_type(&self) -> &CrossSigningResetAuthType
Get the CrossSigningResetAuthType
this cross-signing reset process
is using.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CrossSigningResetHandle
impl !RefUnwindSafe for CrossSigningResetHandle
impl Send for CrossSigningResetHandle
impl Sync for CrossSigningResetHandle
impl Unpin for CrossSigningResetHandle
impl !UnwindSafe for CrossSigningResetHandle
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> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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