pub enum IncomingResponse<'a> {
KeysUpload(&'a KeysUploadResponse),
KeysQuery(&'a KeysQueryResponse),
ToDevice(&'a ToDeviceResponse),
KeysClaim(&'a KeysClaimResponse),
SigningKeysUpload(&'a SigningKeysUploadResponse),
SignatureUpload(&'a SignatureUploadResponse),
RoomMessage(&'a RoomMessageResponse),
KeysBackup(&'a KeysBackupResponse),
}
Expand description
Enum over all the incoming responses we need to receive.
Variants
KeysUpload(&'a KeysUploadResponse)
The keys upload response, notifying us about the amount of uploaded one-time keys.
KeysQuery(&'a KeysQueryResponse)
The keys query response, giving us the device and cross singing keys of other users.
ToDevice(&'a ToDeviceResponse)
The to-device response, an empty response.
KeysClaim(&'a KeysClaimResponse)
The key claiming requests, giving us new one-time keys of other users so new Olm sessions can be created.
SigningKeysUpload(&'a SigningKeysUploadResponse)
The cross signing keys upload response, marking our private cross signing identity as shared.
SignatureUpload(&'a SignatureUploadResponse)
The cross signing signature upload response.
RoomMessage(&'a RoomMessageResponse)
A room message response, usually for interactive verifications.
KeysBackup(&'a KeysBackupResponse)
Response for the server-side room key backup request.
Trait Implementations
sourceimpl<'a> Debug for IncomingResponse<'a>
impl<'a> Debug for IncomingResponse<'a>
sourceimpl<'a> From<&'a Response> for IncomingResponse<'a>
impl<'a> From<&'a Response> for IncomingResponse<'a>
sourcefn from(response: &'a KeysUploadResponse) -> Self
fn from(response: &'a KeysUploadResponse) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a Response> for IncomingResponse<'a>
impl<'a> From<&'a Response> for IncomingResponse<'a>
sourcefn from(response: &'a KeysBackupResponse) -> Self
fn from(response: &'a KeysBackupResponse) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a Response> for IncomingResponse<'a>
impl<'a> From<&'a Response> for IncomingResponse<'a>
sourcefn from(response: &'a KeysQueryResponse) -> Self
fn from(response: &'a KeysQueryResponse) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a Response> for IncomingResponse<'a>
impl<'a> From<&'a Response> for IncomingResponse<'a>
sourcefn from(response: &'a ToDeviceResponse) -> Self
fn from(response: &'a ToDeviceResponse) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a Response> for IncomingResponse<'a>
impl<'a> From<&'a Response> for IncomingResponse<'a>
sourcefn from(response: &'a RoomMessageResponse) -> Self
fn from(response: &'a RoomMessageResponse) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a Response> for IncomingResponse<'a>
impl<'a> From<&'a Response> for IncomingResponse<'a>
sourcefn from(response: &'a KeysClaimResponse) -> Self
fn from(response: &'a KeysClaimResponse) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a Response> for IncomingResponse<'a>
impl<'a> From<&'a Response> for IncomingResponse<'a>
sourcefn from(response: &'a SignatureUploadResponse) -> Self
fn from(response: &'a SignatureUploadResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more