pub enum RQError {
Show 20 variants
Other(String),
Decode(String),
PbDecode(DecodeError),
EmptyField(&'static str),
Utf8(FromUtf8Error),
CommandNameMismatch(String, String),
Timeout,
Network,
Jce(JceError),
IO(Error),
UnknownFlag(u8),
UnknownEncryptType,
InvalidPacketType,
InvalidEncryptType,
PacketDropped,
SessionExpired,
UnsuccessfulRetCode(i32),
TokenLoginFailed,
GetFileCountFailed,
GetFileListFailed(String),
}
Variants§
Other(String)
Decode(String)
PbDecode(DecodeError)
EmptyField(&'static str)
Utf8(FromUtf8Error)
CommandNameMismatch(String, String)
Timeout
Network
Jce(JceError)
IO(Error)
UnknownFlag(u8)
UnknownEncryptType
InvalidPacketType
InvalidEncryptType
PacketDropped
SessionExpired
UnsuccessfulRetCode(i32)
TokenLoginFailed
GetFileCountFailed
GetFileListFailed(String)
Trait Implementations§
source§impl Error for RQError
impl Error for RQError
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<DecodeError> for RQError
impl From<DecodeError> for RQError
source§fn from(source: DecodeError) -> RQError
fn from(source: DecodeError) -> RQError
Converts to this type from the input type.
source§impl From<FromUtf8Error> for RQError
impl From<FromUtf8Error> for RQError
source§fn from(source: FromUtf8Error) -> RQError
fn from(source: FromUtf8Error) -> RQError
Converts to this type from the input type.