Enum matrix_sdk::sliding_sync::Error
source · #[non_exhaustive]pub enum Error {
VersionIsMissing,
BadResponse(String),
RequestGeneratorHasNotBeenInitialized(String),
InvalidRange {
start: u32,
end: u32,
},
UnauthenticatedUser,
InternalChannelIsBroken,
InvalidSlidingSyncIdentifier,
JoinError {
task_description: String,
error: JoinError,
},
NoOlmMachine,
CryptoStoreError(CryptoStoreError),
}
experimental-sliding-sync
only.Expand description
Internal representation of errors in Sliding Sync.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
VersionIsMissing
Sliding sync has been configured with a missing version. See
crate::sliding_sync::Version
.
BadResponse(String)
The response we’ve received from the server can’t be parsed or doesn’t
match up with the current expectations on the client side. A
sync
-restart might be required.
RequestGeneratorHasNotBeenInitialized(String)
A SlidingSyncListRequestGenerator
has been used without having been
initialized. It happens when a response is handled before a request has
been sent. It usually happens when testing.
InvalidRange
Ranges have a start
bound greater than end
.
UnauthenticatedUser
We tried to read the user id of a client but it was missing.
InternalChannelIsBroken
The internal channel of SlidingSync
seems to be broken.
InvalidSlidingSyncIdentifier
The name of the Sliding Sync instance is too long.
JoinError
A task failed to execute to completion.
NoOlmMachine
e2e-encryption
only.No Olm machine.
CryptoStoreError(CryptoStoreError)
e2e-encryption
only.An error occurred during a E2EE operation.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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<CryptoStoreError> for Error
impl From<CryptoStoreError> for Error
source§fn from(source: CryptoStoreError) -> Self
fn from(source: CryptoStoreError) -> Self
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
§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