Struct chirpstack_api::as_pb::external::api::multicast_group_service_client::MulticastGroupServiceClient [−][src]
pub struct MulticastGroupServiceClient<T> { /* fields omitted */ }
Expand description
MulticastGroupService is the service managing multicast-groups.
Implementations
impl<T> MulticastGroupServiceClient<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> MulticastGroupServiceClient<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
) -> MulticastGroupServiceClient<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 create(
&mut self,
request: impl IntoRequest<CreateMulticastGroupRequest>
) -> Result<Response<CreateMulticastGroupResponse>, Status>
pub async fn create(
&mut self,
request: impl IntoRequest<CreateMulticastGroupRequest>
) -> Result<Response<CreateMulticastGroupResponse>, Status>
Create creates the given multicast-group.
pub async fn get(
&mut self,
request: impl IntoRequest<GetMulticastGroupRequest>
) -> Result<Response<GetMulticastGroupResponse>, Status>
pub async fn get(
&mut self,
request: impl IntoRequest<GetMulticastGroupRequest>
) -> Result<Response<GetMulticastGroupResponse>, Status>
Get returns a multicast-group given an ID.
pub async fn update(
&mut self,
request: impl IntoRequest<UpdateMulticastGroupRequest>
) -> Result<Response<()>, Status>
pub async fn update(
&mut self,
request: impl IntoRequest<UpdateMulticastGroupRequest>
) -> Result<Response<()>, Status>
Update updates the given multicast-group.
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteMulticastGroupRequest>
) -> Result<Response<()>, Status>
pub async fn delete(
&mut self,
request: impl IntoRequest<DeleteMulticastGroupRequest>
) -> Result<Response<()>, Status>
Delete deletes a multicast-group given an ID.
pub async fn list(
&mut self,
request: impl IntoRequest<ListMulticastGroupRequest>
) -> Result<Response<ListMulticastGroupResponse>, Status>
pub async fn list(
&mut self,
request: impl IntoRequest<ListMulticastGroupRequest>
) -> Result<Response<ListMulticastGroupResponse>, Status>
List lists the available multicast-groups.
pub async fn add_device(
&mut self,
request: impl IntoRequest<AddDeviceToMulticastGroupRequest>
) -> Result<Response<()>, Status>
pub async fn add_device(
&mut self,
request: impl IntoRequest<AddDeviceToMulticastGroupRequest>
) -> Result<Response<()>, Status>
AddDevice adds the given device to the multicast-group.
pub async fn remove_device(
&mut self,
request: impl IntoRequest<RemoveDeviceFromMulticastGroupRequest>
) -> Result<Response<()>, Status>
pub async fn remove_device(
&mut self,
request: impl IntoRequest<RemoveDeviceFromMulticastGroupRequest>
) -> Result<Response<()>, Status>
RemoveDevice removes the given device from the multicast-group.
pub async fn enqueue(
&mut self,
request: impl IntoRequest<EnqueueMulticastQueueItemRequest>
) -> Result<Response<EnqueueMulticastQueueItemResponse>, Status>
pub async fn enqueue(
&mut self,
request: impl IntoRequest<EnqueueMulticastQueueItemRequest>
) -> Result<Response<EnqueueMulticastQueueItemResponse>, Status>
Enqueue adds the given item to the multicast-queue.
pub async fn flush_queue(
&mut self,
request: impl IntoRequest<FlushMulticastGroupQueueItemsRequest>
) -> Result<Response<()>, Status>
pub async fn flush_queue(
&mut self,
request: impl IntoRequest<FlushMulticastGroupQueueItemsRequest>
) -> Result<Response<()>, Status>
FlushQueue flushes the multicast-group queue.
pub async fn list_queue(
&mut self,
request: impl IntoRequest<ListMulticastGroupQueueItemsRequest>
) -> Result<Response<ListMulticastGroupQueueItemsResponse>, Status>
pub async fn list_queue(
&mut self,
request: impl IntoRequest<ListMulticastGroupQueueItemsRequest>
) -> Result<Response<ListMulticastGroupQueueItemsResponse>, Status>
ListQueue lists the items in the multicast-group queue.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for MulticastGroupServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for MulticastGroupServiceClient<T> where
T: Send,
impl<T> Sync for MulticastGroupServiceClient<T> where
T: Sync,
impl<T> Unpin for MulticastGroupServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for MulticastGroupServiceClient<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