Struct xmlrpc::Fault [] [src]

pub struct Fault {
    pub fault_code: i32,
    pub fault_string: String,
}

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

Methods

impl Fault
[src]

[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.

[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]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Fault
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Fault
[src]

impl Display for Fault
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Fault
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

The lower-level cause of this error, if any. Read more

Auto Trait Implementations

impl Send for Fault

impl Sync for Fault