pub trait EchoProxyInterface: Send + Sync {
Show 45 associated items
type EchoTableRequestComposedResponseFut: Future<Output = Result<SimpleStruct, Error>> + Send;
type EchoUnionResponseWithErrorComposedResponseFut: Future<Output = Result<ComposedEchoUnionResponseWithErrorComposedResult, Error>> + Send;
type EchoMinimalResponseFut: Future<Output = Result<(), Error>> + Send;
type EchoMinimalWithErrorResponseFut: Future<Output = Result<EchoEchoMinimalWithErrorResult, Error>> + Send;
type EchoStructResponseFut: Future<Output = Result<Struct, Error>> + Send;
type EchoStructWithErrorResponseFut: Future<Output = Result<EchoEchoStructWithErrorResult, Error>> + Send;
type EchoArraysResponseFut: Future<Output = Result<ArraysStruct, Error>> + Send;
type EchoArraysWithErrorResponseFut: Future<Output = Result<EchoEchoArraysWithErrorResult, Error>> + Send;
type EchoVectorsResponseFut: Future<Output = Result<VectorsStruct, Error>> + Send;
type EchoVectorsWithErrorResponseFut: Future<Output = Result<EchoEchoVectorsWithErrorResult, Error>> + Send;
type EchoTableResponseFut: Future<Output = Result<AllTypesTable, Error>> + Send;
type EchoTableWithErrorResponseFut: Future<Output = Result<EchoEchoTableWithErrorResult, Error>> + Send;
type EchoXunionsResponseFut: Future<Output = Result<Vec<AllTypesXunion>, Error>> + Send;
type EchoXunionsWithErrorResponseFut: Future<Output = Result<EchoEchoXunionsWithErrorResult, Error>> + Send;
type EchoNamedStructResponseFut: Future<Output = Result<SimpleStruct, Error>> + Send;
type EchoNamedStructWithErrorResponseFut: Future<Output = Result<EchoEchoNamedStructWithErrorResult, Error>> + Send;
type EchoTablePayloadResponseFut: Future<Output = Result<ResponseTable, Error>> + Send;
type EchoTablePayloadWithErrorResponseFut: Future<Output = Result<EchoEchoTablePayloadWithErrorResult, Error>> + Send;
type EchoUnionPayloadResponseFut: Future<Output = Result<ResponseUnion, Error>> + Send;
type EchoUnionPayloadWithErrorResponseFut: Future<Output = Result<EchoEchoUnionPayloadWithErrorResult, Error>> + Send;
// Required methods
fn echo_table_request_composed(
&self,
payload: &ComposedEchoTableRequestComposedRequest,
) -> Self::EchoTableRequestComposedResponseFut;
fn echo_union_response_with_error_composed(
&self,
value: i64,
want_absolute_value: bool,
forward_to_server: &str,
result_err: u32,
result_variant: WantResponse,
) -> Self::EchoUnionResponseWithErrorComposedResponseFut;
fn echo_minimal(
&self,
forward_to_server: &str,
) -> Self::EchoMinimalResponseFut;
fn echo_minimal_with_error(
&self,
forward_to_server: &str,
result_variant: RespondWith,
) -> Self::EchoMinimalWithErrorResponseFut;
fn echo_minimal_no_ret_val(
&self,
forward_to_server: &str,
) -> Result<(), Error>;
fn echo_struct(
&self,
value: Struct,
forward_to_server: &str,
) -> Self::EchoStructResponseFut;
fn echo_struct_with_error(
&self,
value: Struct,
result_err: DefaultEnum,
forward_to_server: &str,
result_variant: RespondWith,
) -> Self::EchoStructWithErrorResponseFut;
fn echo_struct_no_ret_val(
&self,
value: Struct,
forward_to_server: &str,
) -> Result<(), Error>;
fn echo_arrays(
&self,
value: ArraysStruct,
forward_to_server: &str,
) -> Self::EchoArraysResponseFut;
fn echo_arrays_with_error(
&self,
value: ArraysStruct,
result_err: DefaultEnum,
forward_to_server: &str,
result_variant: RespondWith,
) -> Self::EchoArraysWithErrorResponseFut;
fn echo_vectors(
&self,
value: VectorsStruct,
forward_to_server: &str,
) -> Self::EchoVectorsResponseFut;
fn echo_vectors_with_error(
&self,
value: VectorsStruct,
result_err: DefaultEnum,
forward_to_server: &str,
result_variant: RespondWith,
) -> Self::EchoVectorsWithErrorResponseFut;
fn echo_table(
&self,
value: AllTypesTable,
forward_to_server: &str,
) -> Self::EchoTableResponseFut;
fn echo_table_with_error(
&self,
value: AllTypesTable,
result_err: DefaultEnum,
forward_to_server: &str,
result_variant: RespondWith,
) -> Self::EchoTableWithErrorResponseFut;
fn echo_xunions(
&self,
value: Vec<AllTypesXunion>,
forward_to_server: &str,
) -> Self::EchoXunionsResponseFut;
fn echo_xunions_with_error(
&self,
value: Vec<AllTypesXunion>,
result_err: DefaultEnum,
forward_to_server: &str,
result_variant: RespondWith,
) -> Self::EchoXunionsWithErrorResponseFut;
fn echo_named_struct(
&self,
value: &SimpleStruct,
forward_to_server: &str,
) -> Self::EchoNamedStructResponseFut;
fn echo_named_struct_with_error(
&self,
value: &SimpleStruct,
result_err: u32,
forward_to_server: &str,
result_variant: WantResponse,
) -> Self::EchoNamedStructWithErrorResponseFut;
fn echo_named_struct_no_ret_val(
&self,
value: &SimpleStruct,
forward_to_server: &str,
) -> Result<(), Error>;
fn echo_table_payload(
&self,
payload: &RequestTable,
) -> Self::EchoTablePayloadResponseFut;
fn echo_table_payload_with_error(
&self,
payload: &EchoEchoTablePayloadWithErrorRequest,
) -> Self::EchoTablePayloadWithErrorResponseFut;
fn echo_table_payload_no_ret_val(
&self,
payload: &RequestTable,
) -> Result<(), Error>;
fn echo_union_payload(
&self,
payload: &RequestUnion,
) -> Self::EchoUnionPayloadResponseFut;
fn echo_union_payload_with_error(
&self,
payload: &EchoEchoUnionPayloadWithErrorRequest,
) -> Self::EchoUnionPayloadWithErrorResponseFut;
fn echo_union_payload_no_ret_val(
&self,
payload: &RequestUnion,
) -> Result<(), Error>;
}Required Associated Types§
type EchoTableRequestComposedResponseFut: Future<Output = Result<SimpleStruct, Error>> + Send
type EchoUnionResponseWithErrorComposedResponseFut: Future<Output = Result<ComposedEchoUnionResponseWithErrorComposedResult, Error>> + Send
type EchoMinimalResponseFut: Future<Output = Result<(), Error>> + Send
type EchoMinimalWithErrorResponseFut: Future<Output = Result<EchoEchoMinimalWithErrorResult, Error>> + Send
type EchoStructResponseFut: Future<Output = Result<Struct, Error>> + Send
type EchoStructWithErrorResponseFut: Future<Output = Result<EchoEchoStructWithErrorResult, Error>> + Send
type EchoArraysResponseFut: Future<Output = Result<ArraysStruct, Error>> + Send
type EchoArraysWithErrorResponseFut: Future<Output = Result<EchoEchoArraysWithErrorResult, Error>> + Send
type EchoVectorsResponseFut: Future<Output = Result<VectorsStruct, Error>> + Send
type EchoVectorsWithErrorResponseFut: Future<Output = Result<EchoEchoVectorsWithErrorResult, Error>> + Send
type EchoTableResponseFut: Future<Output = Result<AllTypesTable, Error>> + Send
type EchoTableWithErrorResponseFut: Future<Output = Result<EchoEchoTableWithErrorResult, Error>> + Send
type EchoXunionsResponseFut: Future<Output = Result<Vec<AllTypesXunion>, Error>> + Send
type EchoXunionsWithErrorResponseFut: Future<Output = Result<EchoEchoXunionsWithErrorResult, Error>> + Send
type EchoNamedStructResponseFut: Future<Output = Result<SimpleStruct, Error>> + Send
type EchoNamedStructWithErrorResponseFut: Future<Output = Result<EchoEchoNamedStructWithErrorResult, Error>> + Send
type EchoTablePayloadResponseFut: Future<Output = Result<ResponseTable, Error>> + Send
type EchoTablePayloadWithErrorResponseFut: Future<Output = Result<EchoEchoTablePayloadWithErrorResult, Error>> + Send
type EchoUnionPayloadResponseFut: Future<Output = Result<ResponseUnion, Error>> + Send
type EchoUnionPayloadWithErrorResponseFut: Future<Output = Result<EchoEchoUnionPayloadWithErrorResult, Error>> + Send
Required Methods§
fn echo_table_request_composed( &self, payload: &ComposedEchoTableRequestComposedRequest, ) -> Self::EchoTableRequestComposedResponseFut
fn echo_union_response_with_error_composed( &self, value: i64, want_absolute_value: bool, forward_to_server: &str, result_err: u32, result_variant: WantResponse, ) -> Self::EchoUnionResponseWithErrorComposedResponseFut
fn echo_minimal(&self, forward_to_server: &str) -> Self::EchoMinimalResponseFut
fn echo_minimal_with_error( &self, forward_to_server: &str, result_variant: RespondWith, ) -> Self::EchoMinimalWithErrorResponseFut
fn echo_minimal_no_ret_val(&self, forward_to_server: &str) -> Result<(), Error>
fn echo_struct( &self, value: Struct, forward_to_server: &str, ) -> Self::EchoStructResponseFut
fn echo_struct_with_error( &self, value: Struct, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ) -> Self::EchoStructWithErrorResponseFut
fn echo_struct_no_ret_val( &self, value: Struct, forward_to_server: &str, ) -> Result<(), Error>
fn echo_arrays( &self, value: ArraysStruct, forward_to_server: &str, ) -> Self::EchoArraysResponseFut
fn echo_arrays_with_error( &self, value: ArraysStruct, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ) -> Self::EchoArraysWithErrorResponseFut
fn echo_vectors( &self, value: VectorsStruct, forward_to_server: &str, ) -> Self::EchoVectorsResponseFut
fn echo_vectors_with_error( &self, value: VectorsStruct, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ) -> Self::EchoVectorsWithErrorResponseFut
fn echo_table( &self, value: AllTypesTable, forward_to_server: &str, ) -> Self::EchoTableResponseFut
fn echo_table_with_error( &self, value: AllTypesTable, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ) -> Self::EchoTableWithErrorResponseFut
fn echo_xunions( &self, value: Vec<AllTypesXunion>, forward_to_server: &str, ) -> Self::EchoXunionsResponseFut
fn echo_xunions_with_error( &self, value: Vec<AllTypesXunion>, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ) -> Self::EchoXunionsWithErrorResponseFut
fn echo_named_struct( &self, value: &SimpleStruct, forward_to_server: &str, ) -> Self::EchoNamedStructResponseFut
fn echo_named_struct_with_error( &self, value: &SimpleStruct, result_err: u32, forward_to_server: &str, result_variant: WantResponse, ) -> Self::EchoNamedStructWithErrorResponseFut
fn echo_named_struct_no_ret_val( &self, value: &SimpleStruct, forward_to_server: &str, ) -> Result<(), Error>
fn echo_table_payload( &self, payload: &RequestTable, ) -> Self::EchoTablePayloadResponseFut
fn echo_table_payload_with_error( &self, payload: &EchoEchoTablePayloadWithErrorRequest, ) -> Self::EchoTablePayloadWithErrorResponseFut
fn echo_table_payload_no_ret_val( &self, payload: &RequestTable, ) -> Result<(), Error>
fn echo_union_payload( &self, payload: &RequestUnion, ) -> Self::EchoUnionPayloadResponseFut
fn echo_union_payload_with_error( &self, payload: &EchoEchoUnionPayloadWithErrorRequest, ) -> Self::EchoUnionPayloadWithErrorResponseFut
fn echo_union_payload_no_ret_val( &self, payload: &RequestUnion, ) -> Result<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".