pub trait GroupService:
    Debug
    + Send
    + Sync {
    // Provided methods
    fn list_groups(
        &self,
        _req: ListGroupsRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<ListGroupsResponse>> + Send { ... }
    fn get_group(
        &self,
        _req: GetGroupRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Group>> + Send { ... }
    fn create_group(
        &self,
        _req: CreateGroupRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Group>> + Send { ... }
    fn update_group(
        &self,
        _req: UpdateGroupRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Group>> + Send { ... }
    fn delete_group(
        &self,
        _req: DeleteGroupRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Empty>> + Send { ... }
    fn list_group_members(
        &self,
        _req: ListGroupMembersRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<ListGroupMembersResponse>> + Send { ... }
}Expand description
Defines the trait used to implement crate::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<ListGroupsResponse>> + Send
 
fn list_groups( &self, _req: ListGroupsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<ListGroupsResponse>> + Send
Implements crate::client::GroupService::list_groups.
Sourcefn get_group(
    &self,
    _req: GetGroupRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<Group>> + Send
 
fn get_group( &self, _req: GetGroupRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Group>> + Send
Implements crate::client::GroupService::get_group.
Sourcefn create_group(
    &self,
    _req: CreateGroupRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<Group>> + Send
 
fn create_group( &self, _req: CreateGroupRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Group>> + Send
Implements crate::client::GroupService::create_group.
Sourcefn update_group(
    &self,
    _req: UpdateGroupRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<Group>> + Send
 
fn update_group( &self, _req: UpdateGroupRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Group>> + Send
Implements crate::client::GroupService::update_group.
Sourcefn delete_group(
    &self,
    _req: DeleteGroupRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<Empty>> + Send
 
fn delete_group( &self, _req: DeleteGroupRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Empty>> + Send
Implements crate::client::GroupService::delete_group.
Sourcefn list_group_members(
    &self,
    _req: ListGroupMembersRequest,
    _options: RequestOptions,
) -> impl Future<Output = Result<ListGroupMembersResponse>> + Send
 
fn list_group_members( &self, _req: ListGroupMembersRequest, _options: RequestOptions, ) -> impl Future<Output = Result<ListGroupMembersResponse>> + Send
Implements crate::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.