pub enum RoomSendQueueUpdate {
NewLocalEvent(LocalEcho),
CancelledLocalEvent {
transaction_id: OwnedTransactionId,
},
ReplacedLocalEvent {
transaction_id: OwnedTransactionId,
new_content: SerializableEventContent,
},
SendError {
transaction_id: OwnedTransactionId,
error: Arc<Error>,
is_recoverable: bool,
},
RetryEvent {
transaction_id: OwnedTransactionId,
},
SentEvent {
transaction_id: OwnedTransactionId,
event_id: OwnedEventId,
},
UploadedMedia {
related_to: OwnedTransactionId,
file: MediaSource,
},
}
Expand description
An update to a room send queue, observable with
RoomSendQueue::subscribe
.
Variants§
NewLocalEvent(LocalEcho)
A new local event is being sent.
There’s been a user query to create this event. It is being sent to the server.
CancelledLocalEvent
A local event that hadn’t been sent to the server yet has been cancelled before sending.
Fields
transaction_id: OwnedTransactionId
Transaction id used to identify this event.
ReplacedLocalEvent
A local event’s content has been replaced with something else.
Fields
transaction_id: OwnedTransactionId
Transaction id used to identify this event.
new_content: SerializableEventContent
The new content replacing the previous one.
SendError
An error happened when an event was being sent.
The event has not been removed from the queue. All the send queues will be disabled after this happens, and must be manually re-enabled.
Fields
transaction_id: OwnedTransactionId
Transaction id used to identify this event.
RetryEvent
The event has been unwedged and sending is now being retried.
Fields
transaction_id: OwnedTransactionId
Transaction id used to identify this event.
SentEvent
The event has been sent to the server, and the query returned successfully.
Fields
transaction_id: OwnedTransactionId
Transaction id used to identify this event.
event_id: OwnedEventId
Received event id from the send response.
UploadedMedia
A media has been successfully uploaded.
Fields
The media event this uploaded media relates to.
file: MediaSource
The final media source for the file that was just uploaded.
Trait Implementations§
Source§impl Clone for RoomSendQueueUpdate
impl Clone for RoomSendQueueUpdate
Source§fn clone(&self) -> RoomSendQueueUpdate
fn clone(&self) -> RoomSendQueueUpdate
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for RoomSendQueueUpdate
impl !RefUnwindSafe for RoomSendQueueUpdate
impl Send for RoomSendQueueUpdate
impl Sync for RoomSendQueueUpdate
impl Unpin for RoomSendQueueUpdate
impl !UnwindSafe for RoomSendQueueUpdate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
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>
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>
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