Enum ruma_state_res::Error [−][src]
#[non_exhaustive]
pub enum Error {
SerdeJson(JsonError),
Unsupported(String),
NotFound(String),
InvalidPdu(String),
Custom(Box<dyn Error>),
}
Expand description
Represents the various errors that arise when resolving state.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
A deserialization error.
Tuple Fields of SerdeJson
0: JsonError
The given option or version is unsupported.
Tuple Fields of Unsupported
0: String
The given event was not found.
Tuple Fields of NotFound
0: String
Invalid fields in the given PDU.
Tuple Fields of InvalidPdu
0: String
A custom error.