pub enum ConfigError {
Show 16 variants
Pipeline(PipelineError),
Arena(ArenaError),
EmptySpace,
NoFields,
RingBufferTooSmall {
configured: usize,
},
IngressQueueZero,
InvalidTickRate {
value: f64,
},
BackoffSkewExceedsCap {
initial: u64,
cap: u64,
},
BackoffInvalidFactor {
value: f64,
},
BackoffInvalidThreshold {
value: f64,
},
BackoffZeroDecayRate,
CellCountOverflow {
value: usize,
},
FieldCountOverflow {
value: usize,
},
InvalidField {
reason: String,
},
EngineRecoveryFailed,
ThreadSpawnFailed {
reason: String,
},
}Expand description
Errors detected during WorldConfig::validate().
Variants§
Pipeline(PipelineError)
Propagator pipeline validation failed.
Arena(ArenaError)
Arena configuration is invalid.
EmptySpace
Space has zero cells.
NoFields
No fields registered.
RingBufferTooSmall
Ring buffer size is below the minimum of 2.
IngressQueueZero
Ingress queue capacity is zero.
InvalidTickRate
tick_rate_hz is NaN, infinite, zero, or negative.
BackoffSkewExceedsCap
initial_max_skew exceeds max_skew_cap.
BackoffInvalidFactor
backoff_factor is not finite or is less than 1.0.
BackoffInvalidThreshold
rejection_rate_threshold is outside [0.0, 1.0] or not finite.
BackoffZeroDecayRate
decay_rate is zero.
CellCountOverflow
Cell count exceeds u32::MAX.
FieldCountOverflow
Field count exceeds u32::MAX.
InvalidField
A field definition failed validation.
EngineRecoveryFailed
Engine could not be recovered from tick thread (e.g. thread panicked).
ThreadSpawnFailed
A background thread could not be spawned.
Trait Implementations§
Source§impl Debug for ConfigError
impl Debug for ConfigError
Source§impl Display for ConfigError
impl Display for ConfigError
Source§impl Error for ConfigError
impl Error for ConfigError
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<ArenaError> for ConfigError
impl From<ArenaError> for ConfigError
Source§fn from(e: ArenaError) -> Self
fn from(e: ArenaError) -> Self
Converts to this type from the input type.
Source§impl From<PipelineError> for ConfigError
impl From<PipelineError> for ConfigError
Source§fn from(e: PipelineError) -> Self
fn from(e: PipelineError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConfigError
impl PartialEq for ConfigError
impl StructuralPartialEq for ConfigError
Auto Trait Implementations§
impl Freeze for ConfigError
impl RefUnwindSafe for ConfigError
impl Send for ConfigError
impl Sync for ConfigError
impl Unpin for ConfigError
impl UnsafeUnpin for ConfigError
impl UnwindSafe for ConfigError
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