Enum matrix_sdk::sliding_sync::Error
source · #[non_exhaustive]pub enum Error {
BadResponse(String),
ResponseAlreadyReceived {
pos: Option<String>,
},
RequestGeneratorHasNotBeenInitialized(String),
InvalidRange {
start: u32,
end: u32,
},
UnauthenticatedUser,
InternalChannelIsBroken,
InvalidSlidingSyncIdentifier,
JoinError {
task_description: String,
error: JoinError,
},
}
experimental-sliding-sync
only.Expand description
Internal representation of errors in Sliding Sync.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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.
ResponseAlreadyReceived
The response we’ve received from the server has already been received in
the past because it has a pos
that we have recently seen.
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.
Trait Implementations§
source§impl Error for Error
impl Error for Error
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
Auto Trait Implementations§
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>