pub trait DirectAccessService:
Debug
+ Send
+ Sync {
// Provided methods
fn create_device_session(
&self,
_req: CreateDeviceSessionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<DeviceSession>>> + Send { ... }
fn list_device_sessions(
&self,
_req: ListDeviceSessionsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListDeviceSessionsResponse>>> + Send { ... }
fn get_device_session(
&self,
_req: GetDeviceSessionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<DeviceSession>>> + Send { ... }
fn cancel_device_session(
&self,
_req: CancelDeviceSessionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send { ... }
fn update_device_session(
&self,
_req: UpdateDeviceSessionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<DeviceSession>>> + Send { ... }
}Expand description
Defines the trait used to implement super::client::DirectAccessService.
Application developers may need to implement this trait to mock
client::DirectAccessService. In other use-cases, application developers only
use client::DirectAccessService 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 create_device_session(
&self,
_req: CreateDeviceSessionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<DeviceSession>>> + Send
fn create_device_session( &self, _req: CreateDeviceSessionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DeviceSession>>> + Send
Sourcefn list_device_sessions(
&self,
_req: ListDeviceSessionsRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<ListDeviceSessionsResponse>>> + Send
fn list_device_sessions( &self, _req: ListDeviceSessionsRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<ListDeviceSessionsResponse>>> + Send
Sourcefn get_device_session(
&self,
_req: GetDeviceSessionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<DeviceSession>>> + Send
fn get_device_session( &self, _req: GetDeviceSessionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DeviceSession>>> + Send
Sourcefn cancel_device_session(
&self,
_req: CancelDeviceSessionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<()>>> + Send
fn cancel_device_session( &self, _req: CancelDeviceSessionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<()>>> + Send
Sourcefn update_device_session(
&self,
_req: UpdateDeviceSessionRequest,
_options: RequestOptions,
) -> impl Future<Output = Result<Response<DeviceSession>>> + Send
fn update_device_session( &self, _req: UpdateDeviceSessionRequest, _options: RequestOptions, ) -> impl Future<Output = Result<Response<DeviceSession>>> + Send
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.