pub trait GroupService:
Debug
+ Send
+ Sync {
// Provided methods
fn list_groups(
&self,
_req: ListGroupsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListGroupsResponse>>> + Send { ... }
fn get_group(
&self,
_req: GetGroupRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Group>>> + Send { ... }
fn create_group(
&self,
_req: CreateGroupRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Group>>> + Send { ... }
fn update_group(
&self,
_req: UpdateGroupRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Group>>> + Send { ... }
fn delete_group(
&self,
_req: DeleteGroupRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn list_group_members(
&self,
_req: ListGroupMembersRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListGroupMembersResponse>>> + Send { ... }
}Expand description
Defines the trait used to implement super::client::GroupService.
Application developers may need to implement this trait to mock
client::GroupService. In other use-cases, application developers only
use client::GroupService and need not be concerned with this trait or
its implementations.
Services gain new RPCs routinely. Consequently, this trait gains new methods too. To avoid breaking applications the trait provides a default implementation of each method. Most of these implementations just return an error.
Provided Methods§
Sourcefn list_groups(
&self,
_req: ListGroupsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListGroupsResponse>>> + Send
fn list_groups( &self, _req: ListGroupsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListGroupsResponse>>> + Send
Implements super::client::GroupService::list_groups.
Sourcefn get_group(
&self,
_req: GetGroupRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Group>>> + Send
fn get_group( &self, _req: GetGroupRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Group>>> + Send
Implements super::client::GroupService::get_group.
Sourcefn create_group(
&self,
_req: CreateGroupRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Group>>> + Send
fn create_group( &self, _req: CreateGroupRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Group>>> + Send
Implements super::client::GroupService::create_group.
Sourcefn update_group(
&self,
_req: UpdateGroupRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<Group>>> + Send
fn update_group( &self, _req: UpdateGroupRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<Group>>> + Send
Implements super::client::GroupService::update_group.
Sourcefn delete_group(
&self,
_req: DeleteGroupRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn delete_group( &self, _req: DeleteGroupRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Implements super::client::GroupService::delete_group.
Sourcefn list_group_members(
&self,
_req: ListGroupMembersRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListGroupMembersResponse>>> + Send
fn list_group_members( &self, _req: ListGroupMembersRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListGroupMembersResponse>>> + Send
Implements super::client::GroupService::list_group_members.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.