Enum matrix_sdk::QueueWedgeError
source · pub enum QueueWedgeError {
InsecureDevices {
user_device_map: BTreeMap<OwnedUserId, Vec<OwnedDeviceId>>,
},
IdentityViolations {
users: Vec<OwnedUserId>,
},
CrossVerificationRequired,
MissingMediaContent,
InvalidMimeType {
mime_type: String,
},
GenericApiError {
msg: String,
},
}
Expand description
Represents a failed to send unrecoverable error of an event sent via the send queue.
It is a serializable representation of a client error, see
From
implementation for more details. These errors can not be
automatically retried, but yet some manual action can be taken before retry
sending. If not the only solution is to delete the local event.
Variants§
InsecureDevices
This error occurs when there are some insecure devices in the room, and the current encryption setting prohibits sharing with them.
Fields
user_device_map: BTreeMap<OwnedUserId, Vec<OwnedDeviceId>>
The insecure devices as a Map of userID to deviceID.
IdentityViolations
This error occurs when a previously verified user is not anymore, and the current encryption setting prohibits sharing when it happens.
Fields
users: Vec<OwnedUserId>
The users that are expected to be verified but are not.
CrossVerificationRequired
It is required to set up cross-signing and properly verify the current session before sending.
MissingMediaContent
Media content was cached in the media store, but has disappeared before we could upload it.
InvalidMimeType
We tried to upload some media content with an unknown mime type.
GenericApiError
Other errors.
Trait Implementations§
source§impl Clone for QueueWedgeError
impl Clone for QueueWedgeError
source§fn clone(&self) -> QueueWedgeError
fn clone(&self) -> QueueWedgeError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueueWedgeError
impl Debug for QueueWedgeError
source§impl<'de> Deserialize<'de> for QueueWedgeError
impl<'de> Deserialize<'de> for QueueWedgeError
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<QueueWedgeError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<QueueWedgeError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl Display for QueueWedgeError
impl Display for QueueWedgeError
source§impl Error for QueueWedgeError
impl Error for QueueWedgeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<&Error> for QueueWedgeError
impl From<&Error> for QueueWedgeError
source§impl From<QueueWedgeError> for Error
impl From<QueueWedgeError> for Error
source§fn from(source: QueueWedgeError) -> Self
fn from(source: QueueWedgeError) -> Self
source§impl Serialize for QueueWedgeError
impl Serialize for QueueWedgeError
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for QueueWedgeError
impl RefUnwindSafe for QueueWedgeError
impl Send for QueueWedgeError
impl Sync for QueueWedgeError
impl Unpin for QueueWedgeError
impl UnwindSafe for QueueWedgeError
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
)§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