Enum tcp_handler::common::StarterError
source · pub enum StarterError {
InvalidStream(),
ClientInvalidProtocol(bool, bool),
ClientInvalidIdentifier(String),
ClientInvalidVersion(String),
ServerInvalidProtocol(),
ServerInvalidIdentifier(),
ServerInvalidVersion(),
IO(Error),
Packet(PacketError),
RSA(Error),
AES(InvalidLength),
}
Expand description
Error in init/start protocol.
Variants§
InvalidStream()
Magic bytes isn’t matched. Please confirm that you are connected to the correct address.
ClientInvalidProtocol(bool, bool)
Incompatible tcp-handler protocol. Please check whether you use the same protocol between client and server. This error will be thrown in server side.
ClientInvalidIdentifier(String)
Invalid application identifier. Please confirm that you are connected to the correct application, or that there are no spelling errors in the server and client identifiers. This error will be thrown in server side.
ClientInvalidVersion(String)
Invalid application version. This is usually caused by the low version of the client application. This error will be thrown in server side.
ServerInvalidProtocol()
Incompatible tcp-handler protocol. Please check whether you use the same protocol between client and server. This error will be thrown in client side.
ServerInvalidIdentifier()
Invalid application identifier. Please confirm that you are connected to the correct application, or that there are no spelling errors in the server and client identifiers. This error will be thrown in client side.
ServerInvalidVersion()
Invalid application version. This is usually caused by the low version of the client application. This error will be thrown in client side.
IO(Error)
During io bytes.
Packet(PacketError)
During reading/writing packet.
RSA(Error)
During generating/encrypting/decrypting rsa key.
AES(InvalidLength)
During generating/encrypting/decrypting aes key.