pub enum OutgoingRequests {
KeysUpload(Request),
KeysQuery(KeysQueryRequest),
KeysClaim(Request),
ToDeviceRequest(ToDeviceRequest),
SignatureUpload(Request),
RoomMessage(RoomMessageRequest),
}
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.
Trait Implementations§
source§impl Debug for OutgoingRequests
impl Debug for OutgoingRequests
source§impl From<KeysQueryRequest> for OutgoingRequests
impl From<KeysQueryRequest> for OutgoingRequests
source§fn from(request: KeysQueryRequest) -> Self
fn from(request: KeysQueryRequest) -> Self
Converts to this type from the input type.
source§impl From<OutgoingVerificationRequest> for OutgoingRequests
impl From<OutgoingVerificationRequest> for OutgoingRequests
source§fn from(request: OutgoingVerificationRequest) -> Self
fn from(request: OutgoingVerificationRequest) -> Self
Converts to this type from the input type.
source§impl From<Request> for OutgoingRequests
impl From<Request> for OutgoingRequests
source§impl From<Request> for OutgoingRequests
impl From<Request> for OutgoingRequests
source§impl From<Request> for OutgoingRequests
impl From<Request> for OutgoingRequests
source§impl From<RoomMessageRequest> for OutgoingRequests
impl From<RoomMessageRequest> for OutgoingRequests
source§fn from(request: RoomMessageRequest) -> Self
fn from(request: RoomMessageRequest) -> Self
Converts to this type from the input type.
source§impl From<ToDeviceRequest> for OutgoingRequests
impl From<ToDeviceRequest> for OutgoingRequests
source§fn 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>