pub struct MulticastGroupServiceClient<T> { /* private fields */ }
Expand description
MulticastGroupService is the service managing multicast-groups.
Implementations§
source§impl<T> MulticastGroupServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> MulticastGroupServiceClient<T>where T: GrpcService<BoxBody>, T::Error: Into<StdError>, T::ResponseBody: Body<Data = Bytes> + Send + 'static, <T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>( inner: T, interceptor: F ) -> MulticastGroupServiceClient<InterceptedService<T, F>>where F: Interceptor, T::ResponseBody: Default, T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>, <T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
sourcepub 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 the given multicast group.
sourcepub 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 the multicast group for the given ID.
sourcepub 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 the given multicast group.
sourcepub 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 the multicast-group with the given ID.
sourcepub async fn list(
&mut self,
request: impl IntoRequest<ListMulticastGroupsRequest>
) -> Result<Response<ListMulticastGroupsResponse>, Status>
pub async fn list( &mut self, request: impl IntoRequest<ListMulticastGroupsRequest> ) -> Result<Response<ListMulticastGroupsResponse>, Status>
List the available multicast groups.
sourcepub 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>
Add a device to the multicast group.
sourcepub 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>
Remove a device from the multicast group.
sourcepub async fn add_gateway(
&mut self,
request: impl IntoRequest<AddGatewayToMulticastGroupRequest>
) -> Result<Response<()>, Status>
pub async fn add_gateway( &mut self, request: impl IntoRequest<AddGatewayToMulticastGroupRequest> ) -> Result<Response<()>, Status>
Add a gateway to the multicast group.
sourcepub async fn remove_gateway(
&mut self,
request: impl IntoRequest<RemoveGatewayFromMulticastGroupRequest>
) -> Result<Response<()>, Status>
pub async fn remove_gateway( &mut self, request: impl IntoRequest<RemoveGatewayFromMulticastGroupRequest> ) -> Result<Response<()>, Status>
Remove a gateway from the multicast group.
sourcepub async fn enqueue(
&mut self,
request: impl IntoRequest<EnqueueMulticastGroupQueueItemRequest>
) -> Result<Response<EnqueueMulticastGroupQueueItemResponse>, Status>
pub async fn enqueue( &mut self, request: impl IntoRequest<EnqueueMulticastGroupQueueItemRequest> ) -> Result<Response<EnqueueMulticastGroupQueueItemResponse>, Status>
Add the given item to the multicast group queue.
sourcepub async fn flush_queue(
&mut self,
request: impl IntoRequest<FlushMulticastGroupQueueRequest>
) -> Result<Response<()>, Status>
pub async fn flush_queue( &mut self, request: impl IntoRequest<FlushMulticastGroupQueueRequest> ) -> Result<Response<()>, Status>
Flush the queue for the given multicast group.
sourcepub async fn list_queue(
&mut self,
request: impl IntoRequest<ListMulticastGroupQueueRequest>
) -> Result<Response<ListMulticastGroupQueueResponse>, Status>
pub async fn list_queue( &mut self, request: impl IntoRequest<ListMulticastGroupQueueRequest> ) -> Result<Response<ListMulticastGroupQueueResponse>, Status>
List the items in the multicast group queue.
Trait Implementations§
source§impl<T: Clone> Clone for MulticastGroupServiceClient<T>
impl<T: Clone> Clone for MulticastGroupServiceClient<T>
source§fn clone(&self) -> MulticastGroupServiceClient<T>
fn clone(&self) -> MulticastGroupServiceClient<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto 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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request