pub enum DecisionError {
Transport(String),
Refused {
status: u16,
message: String,
},
Malformed(String),
Mismatch(String),
}Expand description
Why a decision could not be had.
Variants§
Transport(String)
The host could not be reached, or did not answer in time.
Refused
The host answered with an error.
Fields
Malformed(String)
The host answered with something that is not a decision.
Mismatch(String)
The host answered, but not the questions that were asked.
Trait Implementations§
Source§impl Debug for DecisionError
impl Debug for DecisionError
Source§impl Display for DecisionError
impl Display for DecisionError
Source§impl Error for DecisionError
impl Error for DecisionError
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 DecisionError
impl RefUnwindSafe for DecisionError
impl Send for DecisionError
impl Sync for DecisionError
impl Unpin for DecisionError
impl UnsafeUnpin for DecisionError
impl UnwindSafe for DecisionError
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