pib-service-inventory 0.13.1

Inventory interface library to be used in pib-service
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// SPDX-FileCopyrightText: Politik im Blick developers
// SPDX-FileCopyrightText: Wolfgang Silbermayr <wolfgang@silbermayr.at>
//
// SPDX-License-Identifier: AGPL-3.0-or-later OR EUPL-1.2

use crate::{Inventory, Result};

#[cfg_attr(feature = "mockall", mockall::automock)]
#[async_trait::async_trait]
pub trait InventoryProvider: Sync + Send + std::fmt::Debug {
    /// Get an instance of the inventory access handle.
    async fn get_inventory(&self) -> Result<Box<dyn Inventory>>;
}