Struct matrix_sdk_base::store::QueuedRequest
source · pub struct QueuedRequest {
pub kind: QueuedRequestKind,
pub transaction_id: OwnedTransactionId,
pub error: Option<QueueWedgeError>,
pub priority: usize,
}
Expand description
A request to be sent with a send queue.
Fields§
§kind: QueuedRequestKind
The kind of queued request we’re going to send.
transaction_id: OwnedTransactionId
Unique transaction id for the queued request, acting as a key.
error: Option<QueueWedgeError>
Error returned when the request couldn’t be sent and is stuck in the unrecoverable state.
None
if the request is in the queue, waiting to be sent.
priority: usize
At which priority should this be handled?
The bigger the value, the higher the priority at which this request should be handled.
Implementations§
source§impl QueuedRequest
impl QueuedRequest
sourcepub fn as_event(&self) -> Option<&SerializableEventContent>
pub fn as_event(&self) -> Option<&SerializableEventContent>
Returns Some
if the queued request is about sending an event.
sourcepub fn is_wedged(&self) -> bool
pub fn is_wedged(&self) -> bool
True if the request couldn’t be sent because of an unrecoverable API
error. See Self::error
for more details on the reason.
Trait Implementations§
source§impl Clone for QueuedRequest
impl Clone for QueuedRequest
source§fn clone(&self) -> QueuedRequest
fn clone(&self) -> QueuedRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for QueuedRequest
impl RefUnwindSafe for QueuedRequest
impl Send for QueuedRequest
impl Sync for QueuedRequest
impl Unpin for QueuedRequest
impl UnwindSafe for QueuedRequest
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> 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)
🔬This is a nightly-only experimental API. (
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>
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