pub struct EchoSynchronousProxy { /* private fields */ }
Implementations§
Source§impl EchoSynchronousProxy
impl EchoSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<EchoEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<EchoEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
pub fn echo_table_request_composed( &self, payload: &ComposedEchoTableRequestComposedRequest, ___deadline: MonotonicInstant, ) -> Result<SimpleStruct, Error>
pub fn echo_union_response_with_error_composed( &self, value: i64, want_absolute_value: bool, forward_to_server: &str, result_err: u32, result_variant: WantResponse, ___deadline: MonotonicInstant, ) -> Result<ComposedEchoUnionResponseWithErrorComposedResult, Error>
pub fn echo_minimal( &self, forward_to_server: &str, ___deadline: MonotonicInstant, ) -> Result<(), Error>
pub fn echo_minimal_with_error( &self, forward_to_server: &str, result_variant: RespondWith, ___deadline: MonotonicInstant, ) -> Result<EchoEchoMinimalWithErrorResult, Error>
pub fn echo_minimal_no_ret_val( &self, forward_to_server: &str, ) -> Result<(), Error>
pub fn echo_struct( &self, value: Struct, forward_to_server: &str, ___deadline: MonotonicInstant, ) -> Result<Struct, Error>
pub fn echo_struct_with_error( &self, value: Struct, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ___deadline: MonotonicInstant, ) -> Result<EchoEchoStructWithErrorResult, Error>
pub fn echo_struct_no_ret_val( &self, value: Struct, forward_to_server: &str, ) -> Result<(), Error>
pub fn echo_arrays( &self, value: ArraysStruct, forward_to_server: &str, ___deadline: MonotonicInstant, ) -> Result<ArraysStruct, Error>
pub fn echo_arrays_with_error( &self, value: ArraysStruct, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ___deadline: MonotonicInstant, ) -> Result<EchoEchoArraysWithErrorResult, Error>
pub fn echo_vectors( &self, value: VectorsStruct, forward_to_server: &str, ___deadline: MonotonicInstant, ) -> Result<VectorsStruct, Error>
pub fn echo_vectors_with_error( &self, value: VectorsStruct, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ___deadline: MonotonicInstant, ) -> Result<EchoEchoVectorsWithErrorResult, Error>
pub fn echo_table( &self, value: AllTypesTable, forward_to_server: &str, ___deadline: MonotonicInstant, ) -> Result<AllTypesTable, Error>
pub fn echo_table_with_error( &self, value: AllTypesTable, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ___deadline: MonotonicInstant, ) -> Result<EchoEchoTableWithErrorResult, Error>
pub fn echo_xunions( &self, value: Vec<AllTypesXunion>, forward_to_server: &str, ___deadline: MonotonicInstant, ) -> Result<Vec<AllTypesXunion>, Error>
pub fn echo_xunions_with_error( &self, value: Vec<AllTypesXunion>, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ___deadline: MonotonicInstant, ) -> Result<EchoEchoXunionsWithErrorResult, Error>
pub fn echo_named_struct( &self, value: &SimpleStruct, forward_to_server: &str, ___deadline: MonotonicInstant, ) -> Result<SimpleStruct, Error>
pub fn echo_named_struct_with_error( &self, value: &SimpleStruct, result_err: u32, forward_to_server: &str, result_variant: WantResponse, ___deadline: MonotonicInstant, ) -> Result<EchoEchoNamedStructWithErrorResult, Error>
pub fn echo_named_struct_no_ret_val( &self, value: &SimpleStruct, forward_to_server: &str, ) -> Result<(), Error>
pub fn echo_table_payload( &self, payload: &RequestTable, ___deadline: MonotonicInstant, ) -> Result<ResponseTable, Error>
pub fn echo_table_payload_with_error( &self, payload: &EchoEchoTablePayloadWithErrorRequest, ___deadline: MonotonicInstant, ) -> Result<EchoEchoTablePayloadWithErrorResult, Error>
pub fn echo_table_payload_no_ret_val( &self, payload: &RequestTable, ) -> Result<(), Error>
pub fn echo_union_payload( &self, payload: &RequestUnion, ___deadline: MonotonicInstant, ) -> Result<ResponseUnion, Error>
pub fn echo_union_payload_with_error( &self, payload: &EchoEchoUnionPayloadWithErrorRequest, ___deadline: MonotonicInstant, ) -> Result<EchoEchoUnionPayloadWithErrorResult, Error>
pub fn echo_union_payload_no_ret_val( &self, payload: &RequestUnion, ) -> Result<(), Error>
Trait Implementations§
Source§impl Debug for EchoSynchronousProxy
impl Debug for EchoSynchronousProxy
Source§impl SynchronousProxy for EchoSynchronousProxy
impl SynchronousProxy for EchoSynchronousProxy
Source§type Protocol = EchoMarker
type Protocol = EchoMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for EchoSynchronousProxy
impl RefUnwindSafe for EchoSynchronousProxy
impl Send for EchoSynchronousProxy
impl Sync for EchoSynchronousProxy
impl Unpin for EchoSynchronousProxy
impl UnwindSafe for EchoSynchronousProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more