pub enum AnyOutgoingRequest {
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 AnyOutgoingRequest
impl Debug for AnyOutgoingRequest
Source§impl From<KeysQueryRequest> for AnyOutgoingRequest
impl From<KeysQueryRequest> for AnyOutgoingRequest
Source§fn from(request: KeysQueryRequest) -> Self
fn from(request: KeysQueryRequest) -> Self
Converts to this type from the input type.
Source§impl From<OutgoingVerificationRequest> for AnyOutgoingRequest
impl From<OutgoingVerificationRequest> for AnyOutgoingRequest
Source§fn from(request: OutgoingVerificationRequest) -> Self
fn from(request: OutgoingVerificationRequest) -> Self
Converts to this type from the input type.
Source§impl From<Request> for AnyOutgoingRequest
impl From<Request> for AnyOutgoingRequest
Source§fn from(r: KeysClaimRequest) -> Self
fn from(r: KeysClaimRequest) -> Self
Converts to this type from the input type.
Source§impl From<Request> for AnyOutgoingRequest
impl From<Request> for AnyOutgoingRequest
Source§fn from(request: KeysUploadRequest) -> Self
fn from(request: KeysUploadRequest) -> Self
Converts to this type from the input type.
Source§impl From<Request> for AnyOutgoingRequest
impl From<Request> for AnyOutgoingRequest
Source§fn from(request: SignatureUploadRequest) -> Self
fn from(request: SignatureUploadRequest) -> Self
Converts to this type from the input type.
Source§impl From<RoomMessageRequest> for AnyOutgoingRequest
impl From<RoomMessageRequest> for AnyOutgoingRequest
Source§fn from(request: RoomMessageRequest) -> Self
fn from(request: RoomMessageRequest) -> Self
Converts to this type from the input type.
Source§impl From<ToDeviceRequest> for AnyOutgoingRequest
impl From<ToDeviceRequest> for AnyOutgoingRequest
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 AnyOutgoingRequest
impl RefUnwindSafe for AnyOutgoingRequest
impl Send for AnyOutgoingRequest
impl Sync for AnyOutgoingRequest
impl Unpin for AnyOutgoingRequest
impl UnwindSafe for AnyOutgoingRequest
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
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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