pub enum IncomingResponse<'a> {
KeysUpload(&'a Response),
KeysQuery(&'a Response),
ToDevice(&'a Response),
KeysClaim(&'a Response),
SigningKeysUpload(&'a Response),
SignatureUpload(&'a Response),
RoomMessage(&'a Response),
KeysBackup(&'a Response),
}
Expand description
Enum over all the incoming responses we need to receive.
Variants§
KeysUpload(&'a Response)
The /keys/upload
response, notifying us about the amount of uploaded
one-time keys.
KeysQuery(&'a Response)
The /keys/query
response, giving us the device and cross signing keys
of other users.
ToDevice(&'a Response)
The to-device response, an empty response.
KeysClaim(&'a Response)
The key claiming requests, giving us new one-time keys of other users so new Olm sessions can be created.
SigningKeysUpload(&'a Response)
The cross signing /keys/upload
response, marking our private cross
signing identity as shared.
SignatureUpload(&'a Response)
The cross signing signature upload response.
RoomMessage(&'a Response)
A room message response, usually for interactive verifications.
KeysBackup(&'a Response)
Response for the server-side room key backup request.
Trait Implementations§
source§impl<'a> Debug for IncomingResponse<'a>
impl<'a> Debug for IncomingResponse<'a>
source§impl<'a> From<&'a Response> for IncomingResponse<'a>
impl<'a> From<&'a Response> for IncomingResponse<'a>
source§fn from(response: &'a KeysClaimResponse) -> Self
fn from(response: &'a KeysClaimResponse) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a Response> for IncomingResponse<'a>
impl<'a> From<&'a Response> for IncomingResponse<'a>
source§fn from(response: &'a RoomMessageResponse) -> Self
fn from(response: &'a RoomMessageResponse) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a Response> for IncomingResponse<'a>
impl<'a> From<&'a Response> for IncomingResponse<'a>
source§fn from(response: &'a KeysUploadResponse) -> Self
fn from(response: &'a KeysUploadResponse) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a Response> for IncomingResponse<'a>
impl<'a> From<&'a Response> for IncomingResponse<'a>
source§fn from(response: &'a KeysBackupResponse) -> Self
fn from(response: &'a KeysBackupResponse) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a Response> for IncomingResponse<'a>
impl<'a> From<&'a Response> for IncomingResponse<'a>
source§fn from(response: &'a ToDeviceResponse) -> Self
fn from(response: &'a ToDeviceResponse) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a Response> for IncomingResponse<'a>
impl<'a> From<&'a Response> for IncomingResponse<'a>
source§fn from(response: &'a KeysQueryResponse) -> Self
fn from(response: &'a KeysQueryResponse) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a Response> for IncomingResponse<'a>
impl<'a> From<&'a Response> for IncomingResponse<'a>
source§fn from(response: &'a SignatureUploadResponse) -> Self
fn from(response: &'a SignatureUploadResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for IncomingResponse<'a>
impl<'a> RefUnwindSafe for IncomingResponse<'a>
impl<'a> Send for IncomingResponse<'a>
impl<'a> Sync for IncomingResponse<'a>
impl<'a> Unpin for IncomingResponse<'a>
impl<'a> UnwindSafe for IncomingResponse<'a>
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