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>
type EchoUnionResponseWithErrorComposedResponseFut = QueryResponseFut<Result<ComposedEchoUnionResponseWithErrorComposedResponse, u32>>
type EchoMinimalResponseFut = QueryResponseFut<()>
type EchoMinimalWithErrorResponseFut = QueryResponseFut<Result<(), u32>>
type EchoStructResponseFut = QueryResponseFut<Struct>
type EchoStructWithErrorResponseFut = QueryResponseFut<Result<Struct, DefaultEnum>>
type EchoArraysResponseFut = QueryResponseFut<ArraysStruct>
type EchoArraysWithErrorResponseFut = QueryResponseFut<Result<ArraysStruct, DefaultEnum>>
type EchoVectorsResponseFut = QueryResponseFut<VectorsStruct>
type EchoVectorsWithErrorResponseFut = QueryResponseFut<Result<VectorsStruct, DefaultEnum>>
type EchoTableResponseFut = QueryResponseFut<AllTypesTable>
type EchoTableWithErrorResponseFut = QueryResponseFut<Result<AllTypesTable, DefaultEnum>>
type EchoXunionsResponseFut = QueryResponseFut<Vec<AllTypesXunion>>
type EchoXunionsWithErrorResponseFut = QueryResponseFut<Result<Vec<AllTypesXunion>, DefaultEnum>>
type EchoNamedStructResponseFut = QueryResponseFut<SimpleStruct>
type EchoNamedStructWithErrorResponseFut = QueryResponseFut<Result<SimpleStruct, u32>>
type EchoTablePayloadResponseFut = QueryResponseFut<ResponseTable>
type EchoTablePayloadWithErrorResponseFut = QueryResponseFut<Result<ResponseTable, DefaultEnum>>
type EchoUnionPayloadResponseFut = QueryResponseFut<ResponseUnion>
type EchoUnionPayloadWithErrorResponseFut = QueryResponseFut<Result<ResponseUnion, DefaultEnum>>
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>
Source§impl Proxy for EchoProxy
impl Proxy for EchoProxy
Source§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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ProxyHasClient for Twhere
T: Proxy,
impl<T> ProxyHasClient for Twhere
T: Proxy,
Source§fn client(&self) -> Result<ZirconClient, Infallible>
fn client(&self) -> Result<ZirconClient, Infallible>
Get a “client” for this proxy. This is just an object which has methods
for a few common handle creation operations.