pub enum CollabError {
Show 15 variants
AuthenticationFailed(String),
AuthorizationFailed(String),
WorkspaceNotFound(String),
UserNotFound(String),
ConflictDetected(String),
SyncError(String),
DatabaseError(String),
WebSocketError(String),
SerializationError(String),
InvalidInput(String),
AlreadyExists(String),
Timeout(String),
ConnectionError(String),
VersionMismatch {
expected: u64,
actual: u64,
},
Internal(String),
}Expand description
Errors that can occur during collaboration operations
Variants§
AuthenticationFailed(String)
Authentication failed
AuthorizationFailed(String)
Authorization failed (insufficient permissions)
WorkspaceNotFound(String)
Workspace not found
UserNotFound(String)
User not found
ConflictDetected(String)
Conflict detected
SyncError(String)
Sync error
DatabaseError(String)
Database error
WebSocketError(String)
WebSocket error
SerializationError(String)
Serialization error
InvalidInput(String)
Invalid input
AlreadyExists(String)
Resource already exists
Timeout(String)
Operation timeout
ConnectionError(String)
Connection error
VersionMismatch
Version mismatch
Internal(String)
Internal error
Trait Implementations§
Source§impl Debug for CollabError
impl Debug for CollabError
Source§impl Display for CollabError
impl Display for CollabError
Source§impl Error for CollabError
impl Error for CollabError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Elapsed> for CollabError
impl From<Elapsed> for CollabError
Source§impl From<Error> for CollabError
impl From<Error> for CollabError
Source§impl From<Error> for CollabError
impl From<Error> for CollabError
Source§impl From<MigrateError> for CollabError
impl From<MigrateError> for CollabError
Source§fn from(err: MigrateError) -> Self
fn from(err: MigrateError) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for CollabError
impl IntoResponse for CollabError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for CollabError
impl RefUnwindSafe for CollabError
impl Send for CollabError
impl Sync for CollabError
impl Unpin for CollabError
impl UnwindSafe for CollabError
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> 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