pub trait SessionProxyInterface: Send + Sync {
type ConfigureResponseFut: Future<Output = Result<SessionConfigureResult, Error>> + Send;
type StartResponseFut: Future<Output = Result<SessionStartResult, Error>> + Send;
type StopResponseFut: Future<Output = Result<SessionResult, Error>> + Send;
type ResetResponseFut: Future<Output = Result<(), Error>> + Send;
// Required methods
fn configure(
&self,
payload: SessionConfigureRequest,
) -> Self::ConfigureResponseFut;
fn start(&self, payload: &SessionStartRequest) -> Self::StartResponseFut;
fn stop(&self) -> Self::StopResponseFut;
fn reset(&self) -> Self::ResetResponseFut;
}Required Associated Types§
type ConfigureResponseFut: Future<Output = Result<SessionConfigureResult, Error>> + Send
type StartResponseFut: Future<Output = Result<SessionStartResult, Error>> + Send
type StopResponseFut: Future<Output = Result<SessionResult, Error>> + Send
type ResetResponseFut: Future<Output = Result<(), Error>> + Send
Required Methods§
fn configure( &self, payload: SessionConfigureRequest, ) -> Self::ConfigureResponseFut
fn start(&self, payload: &SessionStartRequest) -> Self::StartResponseFut
fn stop(&self) -> Self::StopResponseFut
fn reset(&self) -> Self::ResetResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".