pub enum CtpError {
FfiError(String),
EncodingError(String),
ConnectionError(String),
AuthenticationError(String),
BusinessError(i32, String),
InitializationError(String),
TimeoutError(String),
InvalidParameterError(String),
MemoryError(String),
Other(String),
}
Expand description
CTP错误类型
Variants§
FfiError(String)
FFI调用错误
EncodingError(String)
编码转换错误
ConnectionError(String)
网络连接错误
AuthenticationError(String)
登录认证错误
BusinessError(i32, String)
业务逻辑错误
InitializationError(String)
初始化错误
TimeoutError(String)
超时错误
InvalidParameterError(String)
无效参数错误
MemoryError(String)
内存错误
Other(String)
其他错误
Trait Implementations§
Source§impl Error for CtpError
impl Error for CtpError
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()
Auto Trait Implementations§
impl Freeze for CtpError
impl RefUnwindSafe for CtpError
impl Send for CtpError
impl Sync for CtpError
impl Unpin for CtpError
impl UnwindSafe for CtpError
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