Struct fidl_fidl_test_compatibility::EchoProxy
source · pub struct EchoProxy { /* private fields */ }
Implementations§
source§impl EchoProxy
impl EchoProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fidl.test.compatibility/Echo.
sourcepub fn take_event_stream(&self) -> EchoEventStream
pub fn take_event_stream(&self) -> EchoEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
pub fn echo_table_request_composed( &self, payload: &ComposedEchoTableRequestComposedRequest, ) -> QueryResponseFut<SimpleStruct, DefaultFuchsiaResourceDialect>
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, ) -> QueryResponseFut<ComposedEchoUnionResponseWithErrorComposedResult, DefaultFuchsiaResourceDialect>
pub fn echo_minimal( &self, forward_to_server: &str, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn echo_minimal_with_error( &self, forward_to_server: &str, result_variant: RespondWith, ) -> QueryResponseFut<EchoEchoMinimalWithErrorResult, DefaultFuchsiaResourceDialect>
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, ) -> QueryResponseFut<Struct, DefaultFuchsiaResourceDialect>
pub fn echo_struct_with_error( &self, value: Struct, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ) -> QueryResponseFut<EchoEchoStructWithErrorResult, DefaultFuchsiaResourceDialect>
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, ) -> QueryResponseFut<ArraysStruct, DefaultFuchsiaResourceDialect>
pub fn echo_arrays_with_error( &self, value: ArraysStruct, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ) -> QueryResponseFut<EchoEchoArraysWithErrorResult, DefaultFuchsiaResourceDialect>
pub fn echo_vectors( &self, value: VectorsStruct, forward_to_server: &str, ) -> QueryResponseFut<VectorsStruct, DefaultFuchsiaResourceDialect>
pub fn echo_vectors_with_error( &self, value: VectorsStruct, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ) -> QueryResponseFut<EchoEchoVectorsWithErrorResult, DefaultFuchsiaResourceDialect>
pub fn echo_table( &self, value: AllTypesTable, forward_to_server: &str, ) -> QueryResponseFut<AllTypesTable, DefaultFuchsiaResourceDialect>
pub fn echo_table_with_error( &self, value: AllTypesTable, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ) -> QueryResponseFut<EchoEchoTableWithErrorResult, DefaultFuchsiaResourceDialect>
pub fn echo_xunions( &self, value: Vec<AllTypesXunion>, forward_to_server: &str, ) -> QueryResponseFut<Vec<AllTypesXunion>, DefaultFuchsiaResourceDialect>
pub fn echo_xunions_with_error( &self, value: Vec<AllTypesXunion>, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ) -> QueryResponseFut<EchoEchoXunionsWithErrorResult, DefaultFuchsiaResourceDialect>
pub fn echo_named_struct( &self, value: &SimpleStruct, forward_to_server: &str, ) -> QueryResponseFut<SimpleStruct, DefaultFuchsiaResourceDialect>
pub fn echo_named_struct_with_error( &self, value: &SimpleStruct, result_err: u32, forward_to_server: &str, result_variant: WantResponse, ) -> QueryResponseFut<EchoEchoNamedStructWithErrorResult, DefaultFuchsiaResourceDialect>
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, ) -> QueryResponseFut<ResponseTable, DefaultFuchsiaResourceDialect>
pub fn echo_table_payload_with_error( &self, payload: &EchoEchoTablePayloadWithErrorRequest, ) -> QueryResponseFut<EchoEchoTablePayloadWithErrorResult, DefaultFuchsiaResourceDialect>
pub fn echo_table_payload_no_ret_val( &self, payload: &RequestTable, ) -> Result<(), Error>
pub fn echo_union_payload( &self, payload: &RequestUnion, ) -> QueryResponseFut<ResponseUnion, DefaultFuchsiaResourceDialect>
pub fn echo_union_payload_with_error( &self, payload: &EchoEchoUnionPayloadWithErrorRequest, ) -> QueryResponseFut<EchoEchoUnionPayloadWithErrorResult, DefaultFuchsiaResourceDialect>
pub fn echo_union_payload_no_ret_val( &self, payload: &RequestUnion, ) -> Result<(), Error>
Trait Implementations§
source§impl EchoProxyInterface for EchoProxy
impl EchoProxyInterface for EchoProxy
type EchoTableRequestComposedResponseFut = QueryResponseFut<SimpleStruct>
fn echo_table_request_composed( &self, payload: &ComposedEchoTableRequestComposedRequest, ) -> Self::EchoTableRequestComposedResponseFut
type EchoUnionResponseWithErrorComposedResponseFut = QueryResponseFut<Result<ComposedEchoUnionResponseWithErrorComposedResponse, u32>>
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
type EchoMinimalResponseFut = QueryResponseFut<()>
fn echo_minimal(&self, forward_to_server: &str) -> Self::EchoMinimalResponseFut
type EchoMinimalWithErrorResponseFut = QueryResponseFut<Result<(), u32>>
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>
type EchoStructResponseFut = QueryResponseFut<Struct>
fn echo_struct( &self, value: Struct, forward_to_server: &str, ) -> Self::EchoStructResponseFut
type EchoStructWithErrorResponseFut = QueryResponseFut<Result<Struct, DefaultEnum>>
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>
type EchoArraysResponseFut = QueryResponseFut<ArraysStruct>
fn echo_arrays( &self, value: ArraysStruct, forward_to_server: &str, ) -> Self::EchoArraysResponseFut
type EchoArraysWithErrorResponseFut = QueryResponseFut<Result<ArraysStruct, DefaultEnum>>
fn echo_arrays_with_error( &self, value: ArraysStruct, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ) -> Self::EchoArraysWithErrorResponseFut
type EchoVectorsResponseFut = QueryResponseFut<VectorsStruct>
fn echo_vectors( &self, value: VectorsStruct, forward_to_server: &str, ) -> Self::EchoVectorsResponseFut
type EchoVectorsWithErrorResponseFut = QueryResponseFut<Result<VectorsStruct, DefaultEnum>>
fn echo_vectors_with_error( &self, value: VectorsStruct, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ) -> Self::EchoVectorsWithErrorResponseFut
type EchoTableResponseFut = QueryResponseFut<AllTypesTable>
fn echo_table( &self, value: AllTypesTable, forward_to_server: &str, ) -> Self::EchoTableResponseFut
type EchoTableWithErrorResponseFut = QueryResponseFut<Result<AllTypesTable, DefaultEnum>>
fn echo_table_with_error( &self, value: AllTypesTable, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ) -> Self::EchoTableWithErrorResponseFut
type EchoXunionsResponseFut = QueryResponseFut<Vec<AllTypesXunion>>
fn echo_xunions( &self, value: Vec<AllTypesXunion>, forward_to_server: &str, ) -> Self::EchoXunionsResponseFut
type EchoXunionsWithErrorResponseFut = QueryResponseFut<Result<Vec<AllTypesXunion>, DefaultEnum>>
fn echo_xunions_with_error( &self, value: Vec<AllTypesXunion>, result_err: DefaultEnum, forward_to_server: &str, result_variant: RespondWith, ) -> Self::EchoXunionsWithErrorResponseFut
type EchoNamedStructResponseFut = QueryResponseFut<SimpleStruct>
fn echo_named_struct( &self, value: &SimpleStruct, forward_to_server: &str, ) -> Self::EchoNamedStructResponseFut
type EchoNamedStructWithErrorResponseFut = QueryResponseFut<Result<SimpleStruct, u32>>
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>
type EchoTablePayloadResponseFut = QueryResponseFut<ResponseTable>
fn echo_table_payload( &self, payload: &RequestTable, ) -> Self::EchoTablePayloadResponseFut
type EchoTablePayloadWithErrorResponseFut = QueryResponseFut<Result<ResponseTable, DefaultEnum>>
fn echo_table_payload_with_error( &self, payload: &EchoEchoTablePayloadWithErrorRequest, ) -> Self::EchoTablePayloadWithErrorResponseFut
fn echo_table_payload_no_ret_val( &self, payload: &RequestTable, ) -> Result<(), Error>
type EchoUnionPayloadResponseFut = QueryResponseFut<ResponseUnion>
fn echo_union_payload( &self, payload: &RequestUnion, ) -> Self::EchoUnionPayloadResponseFut
type EchoUnionPayloadWithErrorResponseFut = QueryResponseFut<Result<ResponseUnion, DefaultEnum>>
fn echo_union_payload_with_error( &self, payload: &EchoEchoUnionPayloadWithErrorRequest, ) -> Self::EchoUnionPayloadWithErrorResponseFut
fn echo_union_payload_no_ret_val( &self, payload: &RequestUnion, ) -> Result<(), Error>
source§impl Proxy for EchoProxy
impl Proxy for EchoProxy
§type Protocol = EchoMarker
type Protocol = EchoMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for EchoProxy
impl !RefUnwindSafe for EchoProxy
impl Send for EchoProxy
impl Sync for EchoProxy
impl Unpin for EchoProxy
impl !UnwindSafe for EchoProxy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)