#[non_exhaustive]pub struct RithmicRequestError {
pub rp_code: Vec<String>,
pub code: Option<String>,
pub message: Option<String>,
}Expand description
A request the server turned down, carrying the numeric code and the human-readable message separately so callers can branch on the code without parsing the message text.
This is a request-level outcome, not a connection failure. Receiving one does not mean the connection is unhealthy, so it is not a reason to reconnect.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rp_code: Vec<String>The response code exactly as received, before it is split into
Self::code and Self::message.
code: Option<String>Numeric code, when present.
message: Option<String>Human-readable message, when present.
None when the response carried a code with no message, or no
rp_code at all. Symmetric with Self::code.
Trait Implementations§
Source§impl Clone for RithmicRequestError
impl Clone for RithmicRequestError
Source§fn clone(&self) -> RithmicRequestError
fn clone(&self) -> RithmicRequestError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RithmicRequestError
impl Debug for RithmicRequestError
Source§impl Display for RithmicRequestError
impl Display for RithmicRequestError
impl Eq for RithmicRequestError
Source§impl Error for RithmicRequestError
impl Error for RithmicRequestError
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()
Source§impl PartialEq for RithmicRequestError
impl PartialEq for RithmicRequestError
impl StructuralPartialEq for RithmicRequestError
Auto Trait Implementations§
impl Freeze for RithmicRequestError
impl RefUnwindSafe for RithmicRequestError
impl Send for RithmicRequestError
impl Sync for RithmicRequestError
impl Unpin for RithmicRequestError
impl UnsafeUnpin for RithmicRequestError
impl UnwindSafe for RithmicRequestError
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