pub struct HyphaError {
pub code: String,
pub message: String,
pub hint: Option<String>,
}Expand description
Structured error returned by hypha library functions.
The code field is a machine-readable identifier (e.g. "invalid_uri",
"dns_failed"). The message is human-readable detail.
The optional hint provides actionable remediation advice.
Fields§
§code: String§message: String§hint: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for HyphaError
impl Clone for HyphaError
Source§fn clone(&self) -> HyphaError
fn clone(&self) -> HyphaError
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 HyphaError
impl Debug for HyphaError
Source§impl Display for HyphaError
impl Display for HyphaError
Source§impl Error for HyphaError
impl Error for HyphaError
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 From<&str> for HyphaError
impl From<&str> for HyphaError
Auto Trait Implementations§
impl Freeze for HyphaError
impl RefUnwindSafe for HyphaError
impl Send for HyphaError
impl Sync for HyphaError
impl Unpin for HyphaError
impl UnsafeUnpin for HyphaError
impl UnwindSafe for HyphaError
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