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§
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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,
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".