Trait chirpstack_api::as_pb::application_server_service_server::ApplicationServerService [−][src]
pub trait ApplicationServerService: Send + Sync + 'static { fn handle_uplink_data<'life0, 'async_trait>(
&'life0 self,
request: Request<HandleUplinkDataRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; fn handle_proprietary_uplink<'life0, 'async_trait>(
&'life0 self,
request: Request<HandleProprietaryUplinkRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; fn handle_error<'life0, 'async_trait>(
&'life0 self,
request: Request<HandleErrorRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; fn handle_downlink_ack<'life0, 'async_trait>(
&'life0 self,
request: Request<HandleDownlinkAckRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; fn handle_gateway_stats<'life0, 'async_trait>(
&'life0 self,
request: Request<HandleGatewayStatsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; fn handle_tx_ack<'life0, 'async_trait>(
&'life0 self,
request: Request<HandleTxAckRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; fn set_device_status<'life0, 'async_trait>(
&'life0 self,
request: Request<SetDeviceStatusRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; fn set_device_location<'life0, 'async_trait>(
&'life0 self,
request: Request<SetDeviceLocationRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; fn re_encrypt_device_queue_items<'life0, 'async_trait>(
&'life0 self,
request: Request<ReEncryptDeviceQueueItemsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<ReEncryptDeviceQueueItemsResponse>, Status>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; }
Expand description
Generated trait containing gRPC methods that should be implemented for use with ApplicationServerServiceServer.
Required methods
HandleUplinkData handles uplink data received from an end-device.
HandleProprietaryUplink handles proprietary uplink payloads.
HandleError handles an error message.
HandleDownlinkACK handles a downlink ACK or nACK response.
HandleGatewayStats handles the given gateway stats.
HandleTXACK handles the TX acknowledgement.
SetDeviceStatus updates the device-status for a device.
SetDeviceLocation updates the device-location for a device.
fn re_encrypt_device_queue_items<'life0, 'async_trait>(
&'life0 self,
request: Request<ReEncryptDeviceQueueItemsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<ReEncryptDeviceQueueItemsResponse>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn re_encrypt_device_queue_items<'life0, 'async_trait>(
&'life0 self,
request: Request<ReEncryptDeviceQueueItemsRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<ReEncryptDeviceQueueItemsResponse>, Status>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
ReEncryptDeviceQueueItems requests the application-server to re-encrypt the given payload items using the new parameters. This request is for example triggered when the associated frame-counter of a downlink payload will be used by a mac-layer only payload, e.g. when the NS has mac-commands (or ACKs) to send to the device and combining this with an application-layer payload would exceed the max. payload size. Note there is no requirement that the number of returned items must be equal to the number of requested items.