pub enum StarterError {
InvalidStream(),
InvalidProtocol(ProtocolVariant),
InvalidIdentifier(String),
InvalidVersion(String),
IO(Error),
RSA(Error),
}
Expand description
Error when init/start protocol.
Variants§
InvalidStream()
[MAGIC_BYTES
] isn’t matched. Or the [MAGIC_VERSION
] is no longer supported.
Please confirm that you are connected to the correct address.
InvalidProtocol(ProtocolVariant)
Incompatible tcp-handler protocol. The param came from the other side. Please check whether you use the same protocol between client and server.
InvalidIdentifier(String)
Invalid application identifier. The param came from the other side. Please confirm that you are connected to the correct application, or that there are no spelling errors in the server and client identifiers.
InvalidVersion(String)
Invalid application version. The param came from the other side. This is usually caused by the low version of the client application.
IO(Error)
During io bytes.
RSA(Error)
Available on crate feature
encryption
only.During generating/encrypting/decrypting rsa key.
Trait Implementations§
Source§impl Debug for StarterError
impl Debug for StarterError
Source§impl Display for StarterError
impl Display for StarterError
Source§impl Error for StarterError
impl Error for StarterError
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 StarterError
impl From<Error> for StarterError
Auto Trait Implementations§
impl Freeze for StarterError
impl !RefUnwindSafe for StarterError
impl Send for StarterError
impl Sync for StarterError
impl Unpin for StarterError
impl !UnwindSafe for StarterError
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