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

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more