pub enum OutgoingRequests {
KeysUpload(Request),
KeysQuery(KeysQueryRequest),
KeysClaim(Request),
ToDeviceRequest(ToDeviceRequest),
SignatureUpload(Request),
RoomMessage(RoomMessageRequest),
KeysBackup(KeysBackupRequest),
}
Expand description
Enum over the different outgoing requests we can have.
Variants§
KeysUpload(Request)
The /keys/upload
request, uploading device and one-time keys.
KeysQuery(KeysQueryRequest)
The /keys/query
request, fetching the device and cross signing keys of
other users.
KeysClaim(Request)
The request to claim one-time keys for a user/device pair from the server, after the response is received an 1-to-1 Olm session will be established with the user/device pair.
ToDeviceRequest(ToDeviceRequest)
The to-device requests, this request is used for a couple of different things, the main use is key requests/forwards and interactive device verification.
SignatureUpload(Request)
Signature upload request, this request is used after a successful device or user verification is done.
RoomMessage(RoomMessageRequest)
A room message request, usually for sending in-room interactive verification events.
KeysBackup(KeysBackupRequest)
A request that will back up a batch of room keys to the server.