[−][src]Struct xmlrpc::Fault
A <fault>
response, indicating that a request failed.
The XML-RPC specification requires that a <faultCode>
and <faultString>
is returned in the
<fault>
case, further describing the error.
Fields
fault_code: i32
An application-specific error code.
fault_string: String
Human-readable error description.
Implementations
impl Fault
[src]
pub fn from_value(value: &Value) -> Option<Self>
[src]
Creates a Fault
from a Value
.
The Value
must be a Value::Struct
with a faultCode
and faultString
field (and no
other fields).
Returns None
if the value isn't a valid Fault
.
pub fn to_value(&self) -> Value
[src]
Turns this Fault
into an equivalent Value
.
The returned value can be parsed back into a Fault
using Fault::from_value
or returned
as a <fault>
error response by serializing it into a <fault></fault>
tag.
Trait Implementations
impl Debug for Fault
[src]
impl Display for Fault
[src]
impl Eq for Fault
[src]
impl Error for Fault
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl PartialEq<Fault> for Fault
[src]
impl StructuralEq for Fault
[src]
impl StructuralPartialEq for Fault
[src]
Auto Trait Implementations
impl RefUnwindSafe for Fault
[src]
impl Send for Fault
[src]
impl Sync for Fault
[src]
impl Unpin for Fault
[src]
impl UnwindSafe for Fault
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,