pub enum OutgoingRequests {
    KeysUpload(KeysUploadRequest),
    KeysQuery(KeysQueryRequest),
    KeysClaim(KeysClaimRequest),
    ToDeviceRequest(ToDeviceRequest),
    SignatureUpload(SignatureUploadRequest),
    RoomMessage(RoomMessageRequest),
    KeysBackup(KeysBackupRequest),
}
Expand description

Enum over the different outgoing requests we can have.

Variants

KeysUpload(KeysUploadRequest)

The keys upload request, uploading device and one-time keys.

KeysQuery(KeysQueryRequest)

The keys query request, fetching the device and cross singing keys of other users.

KeysClaim(KeysClaimRequest)

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(SignatureUploadRequest)

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.

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.

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