Trait ResourceRegistryBacking
Source pub trait ResourceRegistryBacking: Sync + Send {
// Required methods
fn reserve<'life0, 'async_trait>(
&'life0 self,
request: ResourceNamesReservationRequest,
) -> Pin<Box<dyn Future<Output = Result<RegistryReservation, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register<'life0, 'async_trait>(
&'life0 self,
registration: ResourceRegistration,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn select<'life0, 'async_trait>(
&'life0 self,
select: ResourceSelector,
) -> Pin<Box<dyn Future<Output = Result<Vec<ResourceRecord>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn set_location<'life0, 'async_trait>(
&'life0 self,
location: ResourceRecord,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get<'life0, 'async_trait>(
&'life0 self,
identifier: ResourceIdentifier,
) -> Pin<Box<dyn Future<Output = Result<Option<ResourceRecord>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn unique_src<'life0, 'async_trait>(
&'life0 self,
resource_type: ResourceType,
key: ResourceIdentifier,
) -> Pin<Box<dyn Future<Output = Box<dyn UniqueSrc>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}