usethiserror::Error;/// Why a quota operation did not go through. `storage` maps these onto its own
/// error type: a limit rejection stays a client error, an unreadable quota file
/// a server one.
#[derive(Debug, Error)]pubenumQuotaError{/// An update was refused because a resource has reached its limit.
#[error("{0}")]
LimitReached(String),/// The config does not describe a quota that can be enforced.
#[error("{0}")]
InvalidConfig(String),/// The quota file could not be read or written.
#[error("{0}")]
Io(String),}pubtypeQuotaResult<T>=Result<T, QuotaError>;