pub enum NetcodeError {
Show 17 variants
UnavailablePrivateKey,
InvalidPacketType,
InvalidProtocolID,
InvalidVersion,
InvalidSocketId,
PacketTooSmall,
PayloadAboveLimit,
DuplicatedSequence,
NoMoreServers,
Expired,
Disconnected(DisconnectReason),
CryptoError,
NotInHostList,
ClientNotFound,
ClientNotConnected,
IoError(Error),
TokenGenerationError(TokenGenerationError),
}Available on crate feature
netcode only.Expand description
Errors from the renetcode crate.
Variants§
No private keys was available while decrypting.
InvalidPacketType
The type of the packet is invalid.
InvalidProtocolID
The connect token has an invalid protocol id.
InvalidVersion
The connect token has an invalid version.
InvalidSocketId
The connect token was transmitted by an invalid socket.
PacketTooSmall
Packet size is too small to be a netcode packet.
PayloadAboveLimit
Payload is above the maximum limit
DuplicatedSequence
The processed packet is duplicated
NoMoreServers
No more host are available in the connect token..
Expired
The connect token has expired.
Disconnected(DisconnectReason)
The client is disconnected.
CryptoError
An error occurred while encrypting or decrypting.
NotInHostList
The server address is not in the connect token.
ClientNotFound
Client was not found.
ClientNotConnected
Client is not connected.
IoError(Error)
IO error.
TokenGenerationError(TokenGenerationError)
An error occurred while generating the connect token.
Trait Implementations§
Source§impl Debug for NetcodeError
impl Debug for NetcodeError
Source§impl Display for NetcodeError
impl Display 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 From<Error> for NetcodeError
impl From<Error> for NetcodeError
Source§fn from(inner: Error) -> NetcodeError
fn from(inner: Error) -> NetcodeError
Converts to this type from the input type.
Source§impl From<Error> for NetcodeError
impl From<Error> for NetcodeError
Source§fn from(_: Error) -> NetcodeError
fn from(_: Error) -> NetcodeError
Converts to this type from the input type.
Source§impl From<NetcodeError> for NetcodeTransportError
impl From<NetcodeError> for NetcodeTransportError
Source§fn from(inner: NetcodeError) -> NetcodeTransportError
fn from(inner: NetcodeError) -> NetcodeTransportError
Converts to this type from the input type.
Source§impl From<TokenGenerationError> for NetcodeError
impl From<TokenGenerationError> for NetcodeError
Source§fn from(inner: TokenGenerationError) -> NetcodeError
fn from(inner: TokenGenerationError) -> NetcodeError
Converts to this type from the input type.
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<S> IntoConnectOptions for Swhere
S: ToString,
impl<S> IntoConnectOptions for Swhere
S: ToString,
Source§fn into_options(self) -> ConnectOptions
fn into_options(self) -> ConnectOptions
Perform value-to-value conversion into
ConnectOptions.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>
Converts
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>
Converts
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 moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.