#[non_exhaustive]pub enum NetcodeError {
InvalidConfig(&'static str),
InvalidSample(&'static str),
InvalidInput(&'static str),
InputHistoryFull,
SequenceExhausted,
InvalidAcknowledgement,
PredictionHistoryFull,
ReplayLimitExceeded,
InterpolationBufferEmpty,
PredictedEntityLimit,
}Expand description
Configuration, timing, or input validation failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidConfig(&'static str)
A configured limit cannot produce a bounded state machine.
InvalidSample(&'static str)
A Tick synchronization observation is internally inconsistent.
InvalidInput(&'static str)
An input packet or frame violates its configured bounds.
InputHistoryFull
Unacknowledged input filled the sender’s bounded history.
SequenceExhausted
The local input sequence can no longer be incremented.
InvalidAcknowledgement
A peer acknowledged an input sequence that was never issued.
PredictionHistoryFull
Unconfirmed prediction frames filled the bounded client history.
ReplayLimitExceeded
One authoritative correction would replay more inputs than configured.
InterpolationBufferEmpty
A remote interpolation sample was requested before any state arrived.
PredictedEntityLimit
Pending predicted entities filled the bounded matcher.
Trait Implementations§
Source§impl Clone for NetcodeError
impl Clone for NetcodeError
Source§fn clone(&self) -> NetcodeError
fn clone(&self) -> NetcodeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetcodeError
impl Debug for NetcodeError
Source§impl Display for NetcodeError
impl Display for NetcodeError
impl Eq for NetcodeError
Source§impl Error for NetcodeError
impl Error for NetcodeError
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 PartialEq for NetcodeError
impl PartialEq for NetcodeError
impl StructuralPartialEq for NetcodeError
Auto Trait Implementations§
impl Freeze for NetcodeError
impl RefUnwindSafe for NetcodeError
impl Send for NetcodeError
impl Sync for NetcodeError
impl Unpin for NetcodeError
impl UnsafeUnpin for NetcodeError
impl UnwindSafe for NetcodeError
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