qdrant-edge 0.8.0

A lightweight, in-process vector search engine designed for embedded devices, autonomous systems, and mobile agents.
Documentation
use thiserror::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)]
pub enum QuotaError {
    /// 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),
}

pub type QuotaResult<T> = Result<T, QuotaError>;