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§fn from(request: KeysUploadRequest) -> Self
fn from(request: KeysUploadRequest) -> Self
Converts to this type from the input type.
source§impl From<Request> for OutgoingRequests
impl From<Request> for OutgoingRequests
source§fn from(r: KeysClaimRequest) -> Self
fn from(r: KeysClaimRequest) -> Self
Converts to this type from the input type.
source§impl From<Request> for OutgoingRequests
impl From<Request> for OutgoingRequests
source§fn from(request: SignatureUploadRequest) -> Self
fn from(request: SignatureUploadRequest) -> Self
Converts to this type from the input type.
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 Freeze for OutgoingRequests
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
source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more