pub enum ServerError {
Show 16 variants
Admission(AdmissionRejection),
Validation(ValidationError),
IdentityMismatch,
Store(StoreError),
VersionOverflow,
Dependency(DependencyError),
ScopeAuthorization(ExecutionError),
SnapshotNoProgress,
BootstrapUnavailable,
Compute(ComputeError),
ResponseLimit,
Codec(CodecError),
MemoryBudget {
domain: &'static str,
actual: usize,
maximum: usize,
},
Merge(MergeError),
Maintenance {
mode: MaintenanceMode,
retry_after_seconds: u64,
},
Authority(AuthorityError),
}Expand description
A request-level failure. Per-operation business failures are represented in SyncResponse.
Variants§
Admission(AdmissionRejection)
Cross-transport admission rejected work before authoritative mutation.
Validation(ValidationError)
Request failed structural validation.
IdentityMismatch
Session identity did not match authenticated identity.
Store(StoreError)
Persistence failed before a safe response could be produced.
VersionOverflow
Entity version exhausted its integer representation.
Dependency(DependencyError)
The operation dependency graph was invalid.
ScopeAuthorization(ExecutionError)
The application rejected access to the requested partial sync scope.
SnapshotNoProgress
Snapshot page limits were too small to return even one remaining entity.
This service implementation does not provide bootstrap snapshots.
Compute(ComputeError)
Dedicated CPU work could not complete.
ResponseLimit
The client advertised a response ceiling too small for mandatory progress.
Codec(CodecError)
A response could not be measured with the production wire codec.
MemoryBudget
A typed request or response exceeded the configured in-memory domain budget.
Merge(MergeError)
An application-registered deterministic merger failed.
Maintenance
Operator-selected maintenance mode currently rejects this synchronization action.
Fields
mode: MaintenanceModeActive maintenance policy.
Authority(AuthorityError)
Authority identity, epoch, runtime mode, or write fence rejected the request.
Trait Implementations§
Source§impl Debug for ServerError
impl Debug for ServerError
Source§impl Display for ServerError
impl Display for ServerError
Source§impl Error for ServerError
impl Error for ServerError
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
use the Display impl or to_string()
Source§impl From<AdmissionRejection> for ServerError
impl From<AdmissionRejection> for ServerError
Source§fn from(source: AdmissionRejection) -> Self
fn from(source: AdmissionRejection) -> Self
Source§impl From<AuthorityError> for ServerError
impl From<AuthorityError> for ServerError
Source§fn from(source: AuthorityError) -> Self
fn from(source: AuthorityError) -> Self
Source§impl From<CodecError> for ServerError
impl From<CodecError> for ServerError
Source§fn from(source: CodecError) -> Self
fn from(source: CodecError) -> Self
Source§impl From<ComputeError> for ServerError
impl From<ComputeError> for ServerError
Source§fn from(source: ComputeError) -> Self
fn from(source: ComputeError) -> Self
Source§impl From<DependencyError> for ServerError
impl From<DependencyError> for ServerError
Source§fn from(source: DependencyError) -> Self
fn from(source: DependencyError) -> Self
Source§impl From<MergeError> for ServerError
impl From<MergeError> for ServerError
Source§fn from(source: MergeError) -> Self
fn from(source: MergeError) -> Self
Source§impl From<StoreError> for ServerError
impl From<StoreError> for ServerError
Source§fn from(source: StoreError) -> Self
fn from(source: StoreError) -> Self
Source§impl From<ValidationError> for ServerError
impl From<ValidationError> for ServerError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for ServerError
impl !UnwindSafe for ServerError
impl Freeze for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnsafeUnpin for ServerError
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> 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