pub struct BrainHttpError {
pub status: u16,
pub code: String,
pub message: String,
}Expand description
A Brain HTTP edge failure. Mirrors the Python/TypeScript BrainHttpError:
status (0 for transport failures), code, message.
Fields§
§status: u16HTTP status, or 0 for a transport failure.
code: StringStable error code ("transport" for network failures).
message: StringHuman-readable message.
Trait Implementations§
Source§impl Clone for BrainHttpError
impl Clone for BrainHttpError
Source§impl Debug for BrainHttpError
impl Debug for BrainHttpError
Source§impl Display for BrainHttpError
impl Display for BrainHttpError
Source§impl Error for BrainHttpError
impl Error for BrainHttpError
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 BrainHttpError
impl RefUnwindSafe for BrainHttpError
impl Send for BrainHttpError
impl Sync for BrainHttpError
impl Unpin for BrainHttpError
impl UnsafeUnpin for BrainHttpError
impl UnwindSafe for BrainHttpError
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