pub enum GgrsError {
PredictionThreshold,
InvalidRequest {
info: String,
},
MismatchedChecksum {
current_frame: Frame,
mismatched_frames: Vec<Frame>,
},
NotSynchronized,
SpectatorTooFarBehind,
}
Expand description
This enum contains all error messages this library can return. Most API functions will generally return a Result<(), GgrsError>
.
Variants§
PredictionThreshold
When the prediction threshold has been reached, we cannot accept more inputs from the local player.
InvalidRequest
You made an invalid request, usually by using wrong parameters for function calls.
MismatchedChecksum
Fields
In a SyncTestSession
, this error is returned if checksums of resimulated frames do not match up with the original checksum.
NotSynchronized
The Session is not synchronized yet. Please start the session and wait a few ms to let the clients synchronize.
SpectatorTooFarBehind
The spectator got so far behind the host that catching up is impossible.
Trait Implementations§
source§impl Error for GgrsError
impl Error for GgrsError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 GgrsError
impl PartialEq for GgrsError
impl StructuralPartialEq for GgrsError
Auto Trait Implementations§
impl RefUnwindSafe for GgrsError
impl Send for GgrsError
impl Sync for GgrsError
impl Unpin for GgrsError
impl UnwindSafe for GgrsError
Blanket Implementations§
§impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere
T: Fail,
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
§impl<E> Fail for E
impl<E> Fail for E
§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read more