pub enum AnyIncomingResponse<'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 AnyIncomingResponse<'a>
impl<'a> Debug for AnyIncomingResponse<'a>
Source§impl<'a> From<&'a Response> for AnyIncomingResponse<'a>
impl<'a> From<&'a Response> for AnyIncomingResponse<'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 AnyIncomingResponse<'a>
impl<'a> From<&'a Response> for AnyIncomingResponse<'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 AnyIncomingResponse<'a>
impl<'a> From<&'a Response> for AnyIncomingResponse<'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 AnyIncomingResponse<'a>
impl<'a> From<&'a Response> for AnyIncomingResponse<'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 AnyIncomingResponse<'a>
impl<'a> From<&'a Response> for AnyIncomingResponse<'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 AnyIncomingResponse<'a>
impl<'a> From<&'a Response> for AnyIncomingResponse<'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 AnyIncomingResponse<'a>
impl<'a> From<&'a Response> for AnyIncomingResponse<'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 AnyIncomingResponse<'a>
impl<'a> RefUnwindSafe for AnyIncomingResponse<'a>
impl<'a> Send for AnyIncomingResponse<'a>
impl<'a> Sync for AnyIncomingResponse<'a>
impl<'a> Unpin for AnyIncomingResponse<'a>
impl<'a> UnwindSafe for AnyIncomingResponse<'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