Struct chirpstack_api::nc::network_controller_service_client::NetworkControllerServiceClient [−][src]
pub struct NetworkControllerServiceClient<T> { /* fields omitted */ }
Expand description
NetworkControllerService is the server to be implemeted by the network-controller.
Implementations
impl<T> NetworkControllerServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + Sync + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> NetworkControllerServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + Sync + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> NetworkControllerServiceClient<InterceptedService<T, F>> where
F: FnMut(Request<()>) -> Result<Request<()>, Status>,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip
.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip
.
pub async fn handle_uplink_meta_data(
&mut self,
request: impl IntoRequest<HandleUplinkMetaDataRequest>
) -> Result<Response<()>, Status>
pub async fn handle_uplink_meta_data(
&mut self,
request: impl IntoRequest<HandleUplinkMetaDataRequest>
) -> Result<Response<()>, Status>
HandleUplinkMetaData handles uplink meta-rata.
pub async fn handle_downlink_meta_data(
&mut self,
request: impl IntoRequest<HandleDownlinkMetaDataRequest>
) -> Result<Response<()>, Status>
pub async fn handle_downlink_meta_data(
&mut self,
request: impl IntoRequest<HandleDownlinkMetaDataRequest>
) -> Result<Response<()>, Status>
HandleDownlinkMetaData handles downlink meta-data.
pub async fn handle_uplink_mac_command(
&mut self,
request: impl IntoRequest<HandleUplinkMacCommandRequest>
) -> Result<Response<()>, Status>
pub async fn handle_uplink_mac_command(
&mut self,
request: impl IntoRequest<HandleUplinkMacCommandRequest>
) -> Result<Response<()>, Status>
HandleUplinkMACCommand handles an uplink mac-command. This method will only be called in case the mac-command request was enqueued throught the API or when the CID is >= 0x80 (proprietary mac-command range).
pub async fn handle_rejected_uplink_frame_set(
&mut self,
request: impl IntoRequest<HandleRejectedUplinkFrameSetRequest>
) -> Result<Response<()>, Status>
pub async fn handle_rejected_uplink_frame_set(
&mut self,
request: impl IntoRequest<HandleRejectedUplinkFrameSetRequest>
) -> Result<Response<()>, Status>
HandleRejectedUplinkFrameSet handles a rejected uplink. And uplink can be rejected in the case the device has not (yet) been provisioned, because of invalid frame-counter, MIC, …
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for NetworkControllerServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for NetworkControllerServiceClient<T> where
T: Send,
impl<T> Sync for NetworkControllerServiceClient<T> where
T: Sync,
impl<T> Unpin for NetworkControllerServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for NetworkControllerServiceClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request