client-api: Add ErrorKind::ResourceLimitExceeded

This commit is contained in:
Jonas Platte 2020-08-17 23:55:06 +02:00
parent 962b3da26b
commit 674f2eeb8b
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -172,6 +172,14 @@ pub enum ErrorKind {
#[serde(rename = "M_EXCLUSIVE")] #[serde(rename = "M_EXCLUSIVE")]
#[strum(to_string = "M_EXCLUSIVE")] #[strum(to_string = "M_EXCLUSIVE")]
Exclusive, Exclusive,
/// M_RESOURCE_LIMIT_EXCEEDED
#[serde(rename = "M_RESOURCE_LIMIT_EXCEEDED")]
#[strum(to_string = "M_RESOURCE_LIMIT_EXCEEDED")]
ResourceLimitExceeded {
/// A URI giving a contact method for the server administrator.
admin_contact: String,
},
} }
/// A Matrix Error without a status code /// A Matrix Error without a status code