Enum tcp_handler::starter::StarterError
source · pub enum StarterError {
InvalidStream(),
ClientInvalidState(bool),
ClientInvalidIdentifier(String),
ClientInvalidVersion(String),
ServerInvalidState(),
ServerInvalidIdentifier(),
ServerInvalidVersion(),
IO(Error),
Packet(PacketError),
RSA(Error),
AES(InvalidLength),
}Variants§
InvalidStream()
ClientInvalidState(bool)
ClientInvalidIdentifier(String)
ClientInvalidVersion(String)
ServerInvalidState()
ServerInvalidIdentifier()
ServerInvalidVersion()
IO(Error)
Packet(PacketError)
RSA(Error)
AES(InvalidLength)
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)>
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
source§impl From<Error> for StarterError
impl From<Error> for StarterError
source§impl From<InvalidLength> for StarterError
impl From<InvalidLength> for StarterError
source§impl From<PacketError> for StarterError
impl From<PacketError> for StarterError
source§fn from(source: PacketError) -> Self
fn from(source: PacketError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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