pub enum GGRSError {
PredictionThreshold,
InvalidRequest {
info: String,
},
MismatchedChecksum {
frame: Frame,
},
NotSynchronized,
SpectatorTooFarBehind,
SocketCreationFailed,
PlayerDisconnected,
DecodingError,
}
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
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.
SocketCreationFailed
Deprecated, will be removed in next major release
PlayerDisconnected
Deprecated, will be removed in next major release
DecodingError
Deprecated, will be removed in next major release
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)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl PartialEq<GGRSError> for GGRSError
impl PartialEq<GGRSError> 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,
§impl<E> Fail for Ewhere
E: Error + Send + Sync + 'static,
impl<E> Fail for Ewhere E: Error + Send + Sync + 'static,
§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Backtrace
carried by this failure, if it
carries one. Read more