Struct chirpstack_api::ns::network_server_service_client::NetworkServerServiceClient[][src]

pub struct NetworkServerServiceClient<T> { /* fields omitted */ }

NetworkServerService provides the network-server API methods.

Implementations

impl NetworkServerServiceClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> NetworkServerServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn create_service_profile(
    &mut self,
    request: impl IntoRequest<CreateServiceProfileRequest>
) -> Result<Response<CreateServiceProfileResponse>, Status>
[src]

CreateServiceProfile creates the given service-profile.

pub async fn get_service_profile(
    &mut self,
    request: impl IntoRequest<GetServiceProfileRequest>
) -> Result<Response<GetServiceProfileResponse>, Status>
[src]

GetServiceProfile returns the service-profile matching the given id.

pub async fn update_service_profile(
    &mut self,
    request: impl IntoRequest<UpdateServiceProfileRequest>
) -> Result<Response<()>, Status>
[src]

UpdateServiceProfile updates the given service-profile.

pub async fn delete_service_profile(
    &mut self,
    request: impl IntoRequest<DeleteServiceProfileRequest>
) -> Result<Response<()>, Status>
[src]

DeleteServiceProfile deletes the service-profile matching the given id.

pub async fn create_routing_profile(
    &mut self,
    request: impl IntoRequest<CreateRoutingProfileRequest>
) -> Result<Response<CreateRoutingProfileResponse>, Status>
[src]

CreateRoutingProfile creates the given routing-profile.

pub async fn get_routing_profile(
    &mut self,
    request: impl IntoRequest<GetRoutingProfileRequest>
) -> Result<Response<GetRoutingProfileResponse>, Status>
[src]

GetRoutingProfile returns the routing-profile matching the given id.

pub async fn update_routing_profile(
    &mut self,
    request: impl IntoRequest<UpdateRoutingProfileRequest>
) -> Result<Response<()>, Status>
[src]

UpdateRoutingProfile updates the given routing-profile.

pub async fn delete_routing_profile(
    &mut self,
    request: impl IntoRequest<DeleteRoutingProfileRequest>
) -> Result<Response<()>, Status>
[src]

DeleteRoutingProfile deletes the routing-profile matching the given id.

pub async fn create_device_profile(
    &mut self,
    request: impl IntoRequest<CreateDeviceProfileRequest>
) -> Result<Response<CreateDeviceProfileResponse>, Status>
[src]

CreateDeviceProfile creates the given device-profile.

pub async fn get_device_profile(
    &mut self,
    request: impl IntoRequest<GetDeviceProfileRequest>
) -> Result<Response<GetDeviceProfileResponse>, Status>
[src]

GetDeviceProfile returns the device-profile matching the given id.

pub async fn update_device_profile(
    &mut self,
    request: impl IntoRequest<UpdateDeviceProfileRequest>
) -> Result<Response<()>, Status>
[src]

UpdateDeviceProfile updates the given device-profile.

pub async fn delete_device_profile(
    &mut self,
    request: impl IntoRequest<DeleteDeviceProfileRequest>
) -> Result<Response<()>, Status>
[src]

DeleteDeviceProfile deletes the device-profile matching the given id.

pub async fn create_device(
    &mut self,
    request: impl IntoRequest<CreateDeviceRequest>
) -> Result<Response<()>, Status>
[src]

CreateDevice creates the given device.

pub async fn get_device(
    &mut self,
    request: impl IntoRequest<GetDeviceRequest>
) -> Result<Response<GetDeviceResponse>, Status>
[src]

GetDevice returns the device matching the given DevEUI.

pub async fn update_device(
    &mut self,
    request: impl IntoRequest<UpdateDeviceRequest>
) -> Result<Response<()>, Status>
[src]

UpdateDevice updates the given device.

pub async fn delete_device(
    &mut self,
    request: impl IntoRequest<DeleteDeviceRequest>
) -> Result<Response<()>, Status>
[src]

DeleteDevice deletes the device matching the given DevEUI.

pub async fn activate_device(
    &mut self,
    request: impl IntoRequest<ActivateDeviceRequest>
) -> Result<Response<()>, Status>
[src]

ActivateDevice activates a device (ABP).

pub async fn deactivate_device(
    &mut self,
    request: impl IntoRequest<DeactivateDeviceRequest>
) -> Result<Response<()>, Status>
[src]

DeactivateDevice de-activates a device.

pub async fn get_device_activation(
    &mut self,
    request: impl IntoRequest<GetDeviceActivationRequest>
) -> Result<Response<GetDeviceActivationResponse>, Status>
[src]

GetDeviceActivation returns the device activation details.

pub async fn create_device_queue_item(
    &mut self,
    request: impl IntoRequest<CreateDeviceQueueItemRequest>
) -> Result<Response<()>, Status>
[src]

CreateDeviceQueueItem creates the given device-queue item.

pub async fn flush_device_queue_for_dev_eui(
    &mut self,
    request: impl IntoRequest<FlushDeviceQueueForDevEuiRequest>
) -> Result<Response<()>, Status>
[src]

FlushDeviceQueueForDevEUI flushes the device-queue for the given DevEUI.

pub async fn get_device_queue_items_for_dev_eui(
    &mut self,
    request: impl IntoRequest<GetDeviceQueueItemsForDevEuiRequest>
) -> Result<Response<GetDeviceQueueItemsForDevEuiResponse>, Status>
[src]

GetDeviceQueueItemsForDevEUI returns all device-queue items for the given DevEUI.

GetNextDownlinkFCntForDevEUI returns the next FCnt that must be used. This also takes device-queue items for the given DevEUI into consideration.

pub async fn get_random_dev_addr(
    &mut self,
    request: impl IntoRequest<()>
) -> Result<Response<GetRandomDevAddrResponse>, Status>
[src]

GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into account.

pub async fn create_mac_command_queue_item(
    &mut self,
    request: impl IntoRequest<CreateMacCommandQueueItemRequest>
) -> Result<Response<()>, Status>
[src]

CreateMACCommandQueueItem adds the downlink mac-command to the queue.

pub async fn send_proprietary_payload(
    &mut self,
    request: impl IntoRequest<SendProprietaryPayloadRequest>
) -> Result<Response<()>, Status>
[src]

SendProprietaryPayload send a payload using the ‘Proprietary’ LoRaWAN message-type.

pub async fn create_gateway(
    &mut self,
    request: impl IntoRequest<CreateGatewayRequest>
) -> Result<Response<()>, Status>
[src]

CreateGateway creates the given gateway.

pub async fn get_gateway(
    &mut self,
    request: impl IntoRequest<GetGatewayRequest>
) -> Result<Response<GetGatewayResponse>, Status>
[src]

GetGateway returns data for a particular gateway.

pub async fn update_gateway(
    &mut self,
    request: impl IntoRequest<UpdateGatewayRequest>
) -> Result<Response<()>, Status>
[src]

UpdateGateway updates an existing gateway.

pub async fn delete_gateway(
    &mut self,
    request: impl IntoRequest<DeleteGatewayRequest>
) -> Result<Response<()>, Status>
[src]

DeleteGateway deletes a gateway.

pub async fn generate_gateway_client_certificate(
    &mut self,
    request: impl IntoRequest<GenerateGatewayClientCertificateRequest>
) -> Result<Response<GenerateGatewayClientCertificateResponse>, Status>
[src]

GenerateGatewayClientCertificate returns TLS certificate gateway authentication / authorization. This endpoint can ony be used when ChirpStack Network Server is configured with a gateway CA certificate and key, which is used for signing the TLS certificate. The returned TLS certificate will have the Gateway ID as Common Name.

pub async fn create_gateway_profile(
    &mut self,
    request: impl IntoRequest<CreateGatewayProfileRequest>
) -> Result<Response<CreateGatewayProfileResponse>, Status>
[src]

CreateGatewayProfile creates the given gateway-profile.

pub async fn get_gateway_profile(
    &mut self,
    request: impl IntoRequest<GetGatewayProfileRequest>
) -> Result<Response<GetGatewayProfileResponse>, Status>
[src]

GetGatewayProfile returns the gateway-profile given an id.

pub async fn update_gateway_profile(
    &mut self,
    request: impl IntoRequest<UpdateGatewayProfileRequest>
) -> Result<Response<()>, Status>
[src]

UpdateGatewayProfile updates the given gateway-profile.

pub async fn delete_gateway_profile(
    &mut self,
    request: impl IntoRequest<DeleteGatewayProfileRequest>
) -> Result<Response<()>, Status>
[src]

DeleteGatewayProfile deletes the gateway-profile matching a given id.

pub async fn get_gateway_stats(
    &mut self,
    request: impl IntoRequest<GetGatewayStatsRequest>
) -> Result<Response<GetGatewayStatsResponse>, Status>
[src]

GetGatewayStats returns stats of an existing gateway. Deprecated (stats are forwarded to Application Server API).

pub async fn stream_frame_logs_for_gateway(
    &mut self,
    request: impl IntoRequest<StreamFrameLogsForGatewayRequest>
) -> Result<Response<Streaming<StreamFrameLogsForGatewayResponse>>, Status>
[src]

StreamFrameLogsForGateway returns a stream of frames seen by the given gateway.

pub async fn stream_frame_logs_for_device(
    &mut self,
    request: impl IntoRequest<StreamFrameLogsForDeviceRequest>
) -> Result<Response<Streaming<StreamFrameLogsForDeviceResponse>>, Status>
[src]

StreamFrameLogsForDevice returns a stream of frames seen by the given device.

pub async fn create_multicast_group(
    &mut self,
    request: impl IntoRequest<CreateMulticastGroupRequest>
) -> Result<Response<CreateMulticastGroupResponse>, Status>
[src]

CreateMulticastGroup creates the given multicast-group.

pub async fn get_multicast_group(
    &mut self,
    request: impl IntoRequest<GetMulticastGroupRequest>
) -> Result<Response<GetMulticastGroupResponse>, Status>
[src]

GetMulticastGroup returns the multicast-group given an id.

pub async fn update_multicast_group(
    &mut self,
    request: impl IntoRequest<UpdateMulticastGroupRequest>
) -> Result<Response<()>, Status>
[src]

UpdateMulticastGroup updates the given multicast-group.

pub async fn delete_multicast_group(
    &mut self,
    request: impl IntoRequest<DeleteMulticastGroupRequest>
) -> Result<Response<()>, Status>
[src]

DeleteMulticastGroup deletes a multicast-group given an id.

pub async fn add_device_to_multicast_group(
    &mut self,
    request: impl IntoRequest<AddDeviceToMulticastGroupRequest>
) -> Result<Response<()>, Status>
[src]

AddDeviceToMulticastGroup adds the given device to the given multicast-group.

pub async fn remove_device_from_multicast_group(
    &mut self,
    request: impl IntoRequest<RemoveDeviceFromMulticastGroupRequest>
) -> Result<Response<()>, Status>
[src]

RemoveDeviceFromMulticastGroup removes the given device from the given multicast-group.

pub async fn enqueue_multicast_queue_item(
    &mut self,
    request: impl IntoRequest<EnqueueMulticastQueueItemRequest>
) -> Result<Response<()>, Status>
[src]

EnqueueMulticastQueueItem enqueues the given multicast queue-item and increments the frame-counter after enqueueing.

pub async fn flush_multicast_queue_for_multicast_group(
    &mut self,
    request: impl IntoRequest<FlushMulticastQueueForMulticastGroupRequest>
) -> Result<Response<()>, Status>
[src]

FlushMulticastQueueForMulticastGroup flushes the multicast device-queue given a multicast-group id.

pub async fn get_multicast_queue_items_for_multicast_group(
    &mut self,
    request: impl IntoRequest<GetMulticastQueueItemsForMulticastGroupRequest>
) -> Result<Response<GetMulticastQueueItemsForMulticastGroupResponse>, Status>
[src]

GetMulticastQueueItemsForMulticastGroup returns the queue-items given a multicast-group id.

pub async fn get_version(
    &mut self,
    request: impl IntoRequest<()>
) -> Result<Response<GetVersionResponse>, Status>
[src]

GetVersion returns the ChirpStack Network Server version.

pub async fn get_adr_algorithms(
    &mut self,
    request: impl IntoRequest<()>
) -> Result<Response<GetAdrAlgorithmsResponse>, Status>
[src]

GetADRAlgorithms returns the available ADR algorithms.

Trait Implementations

impl<T: Clone> Clone for NetworkServerServiceClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for NetworkServerServiceClient<T>

impl<T> Send for NetworkServerServiceClient<T> where
    T: Send

impl<T> Sync for NetworkServerServiceClient<T> where
    T: Sync

impl<T> Unpin for NetworkServerServiceClient<T> where
    T: Unpin

impl<T> !UnwindSafe for NetworkServerServiceClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]