Skip to main content

ExternalLocationHandler

Trait ExternalLocationHandler 

Source
pub trait ExternalLocationHandler<Cx = RequestContext>:
    Send
    + Sync
    + 'static {
    // Required methods
    fn list_external_locations<'life0, 'async_trait>(
        &'life0 self,
        request: ListExternalLocationsRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<ListExternalLocationsResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn create_external_location<'life0, 'async_trait>(
        &'life0 self,
        request: CreateExternalLocationRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<ExternalLocation>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_external_location<'life0, 'async_trait>(
        &'life0 self,
        request: GetExternalLocationRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<ExternalLocation>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_external_location<'life0, 'async_trait>(
        &'life0 self,
        request: UpdateExternalLocationRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<ExternalLocation>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_external_location<'life0, 'async_trait>(
        &'life0 self,
        request: DeleteExternalLocationRequest,
        context: Cx,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn list_external_locations<'life0, 'async_trait>( &'life0 self, request: ListExternalLocationsRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<ListExternalLocationsResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List external locations

Source

fn create_external_location<'life0, 'async_trait>( &'life0 self, request: CreateExternalLocationRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<ExternalLocation>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create a new external location

Source

fn get_external_location<'life0, 'async_trait>( &'life0 self, request: GetExternalLocationRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<ExternalLocation>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get an external location

Source

fn update_external_location<'life0, 'async_trait>( &'life0 self, request: UpdateExternalLocationRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<ExternalLocation>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Update an external location

Source

fn delete_external_location<'life0, 'async_trait>( &'life0 self, request: DeleteExternalLocationRequest, context: Cx, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete an external location

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§