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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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