DeviceProfileService

Trait DeviceProfileService 

Source
pub trait DeviceProfileService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn create<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CreateDeviceProfileRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CreateDeviceProfileResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetDeviceProfileRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetDeviceProfileResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update<'life0, 'async_trait>(
        &'life0 self,
        request: Request<UpdateDeviceProfileRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DeleteDeviceProfileRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ListDeviceProfilesRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListDeviceProfilesResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_adr_algorithms<'life0, 'async_trait>(
        &'life0 self,
        request: Request<()>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ListDeviceProfileAdrAlgorithmsResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with DeviceProfileServiceServer.

Required Methods§

Source

fn create<'life0, 'async_trait>( &'life0 self, request: Request<CreateDeviceProfileRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<CreateDeviceProfileResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create the given device-profile.

Source

fn get<'life0, 'async_trait>( &'life0 self, request: Request<GetDeviceProfileRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetDeviceProfileResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the device-profile for the given ID.

Source

fn update<'life0, 'async_trait>( &'life0 self, request: Request<UpdateDeviceProfileRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Update the given device-profile.

Source

fn delete<'life0, 'async_trait>( &'life0 self, request: Request<DeleteDeviceProfileRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete the device-profile with the given ID.

Source

fn list<'life0, 'async_trait>( &'life0 self, request: Request<ListDeviceProfilesRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListDeviceProfilesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List the available device-profiles.

Source

fn list_adr_algorithms<'life0, 'async_trait>( &'life0 self, request: Request<()>, ) -> Pin<Box<dyn Future<Output = Result<Response<ListDeviceProfileAdrAlgorithmsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List available ADR algorithms.

Implementors§