Enum longport::SimpleError
source · pub enum SimpleError {
Response {
code: i64,
message: String,
trace_id: String,
},
Other(String),
}
Expand description
Simple error type
Variants§
Implementations§
Trait Implementations§
source§impl Debug for SimpleError
impl Debug for SimpleError
source§impl Display for SimpleError
impl Display for SimpleError
source§impl Error for SimpleError
impl Error for SimpleError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for SimpleError
impl RefUnwindSafe for SimpleError
impl Send for SimpleError
impl Sync for SimpleError
impl Unpin for SimpleError
impl UnwindSafe for SimpleError
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