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,
},
MediaUpload {
related_to: OwnedTransactionId,
file: Option<MediaSource>,
index: u64,
progress: AbstractProgress,
},
}
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.
MediaUpload
A media upload (consisting of a file and possibly a thumbnail) has made progress.
Fields
The media event this uploaded media relates to.
file: Option<MediaSource>
The final media source for the file if it has finished uploading.
index: u64
The index of the media within the transaction. A file and its thumbnail share the same index. Will always be 0 for non-gallery media uploads.
progress: AbstractProgress
The combined upload progress across the file and, if existing, its thumbnail. For gallery uploads, the progress is reported per indexed gallery item.
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync 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>
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