#[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),
}
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
No Olm machine.
CryptoStoreError(CryptoStoreError)
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
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