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
sourceimpl Debug for OutgoingRequests
impl Debug for OutgoingRequests
sourceimpl From<KeysBackupRequest> for OutgoingRequests
impl From<KeysBackupRequest> for OutgoingRequests
sourcefn from(r: KeysBackupRequest) -> Self
fn from(r: KeysBackupRequest) -> Self
Converts to this type from the input type.
sourceimpl From<KeysQueryRequest> for OutgoingRequests
impl From<KeysQueryRequest> for OutgoingRequests
sourcefn from(request: KeysQueryRequest) -> Self
fn from(request: KeysQueryRequest) -> Self
Converts to this type from the input type.
sourceimpl From<OutgoingVerificationRequest> for OutgoingRequests
impl From<OutgoingVerificationRequest> for OutgoingRequests
sourcefn from(request: OutgoingVerificationRequest) -> Self
fn from(request: OutgoingVerificationRequest) -> Self
Converts to this type from the input type.
sourceimpl From<Request> for OutgoingRequests
impl From<Request> for OutgoingRequests
sourcefn from(r: KeysClaimRequest) -> Self
fn from(r: KeysClaimRequest) -> Self
Converts to this type from the input type.
sourceimpl From<Request> for OutgoingRequests
impl From<Request> for OutgoingRequests
sourcefn from(request: KeysUploadRequest) -> Self
fn from(request: KeysUploadRequest) -> Self
Converts to this type from the input type.
sourceimpl From<Request> for OutgoingRequests
impl From<Request> for OutgoingRequests
sourcefn from(request: SignatureUploadRequest) -> Self
fn from(request: SignatureUploadRequest) -> Self
Converts to this type from the input type.
sourceimpl From<RoomMessageRequest> for OutgoingRequests
impl From<RoomMessageRequest> for OutgoingRequests
sourcefn from(request: RoomMessageRequest) -> Self
fn from(request: RoomMessageRequest) -> Self
Converts to this type from the input type.
sourceimpl From<ToDeviceRequest> for OutgoingRequests
impl From<ToDeviceRequest> for OutgoingRequests
sourcefn from(request: ToDeviceRequest) -> Self
fn from(request: ToDeviceRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for OutgoingRequests
impl Send for OutgoingRequests
impl Sync for OutgoingRequests
impl Unpin for OutgoingRequests
impl UnwindSafe for OutgoingRequests
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