pub struct ClosedTargetSynchronousProxy { /* private fields */ }
Implementations§
Source§impl ClosedTargetSynchronousProxy
impl ClosedTargetSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ClosedTargetEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ClosedTargetEvent, 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 two_way_no_payload( &self, ___deadline: MonotonicInstant, ) -> Result<(), Error>
pub fn two_way_struct_payload( &self, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
pub fn two_way_table_payload( &self, ___deadline: MonotonicInstant, ) -> Result<TablePayload, Error>
pub fn two_way_union_payload( &self, ___deadline: MonotonicInstant, ) -> Result<UnionPayload, Error>
pub fn two_way_struct_payload_err( &self, ___deadline: MonotonicInstant, ) -> Result<ClosedTargetTwoWayStructPayloadErrResult, Error>
pub fn two_way_struct_request( &self, some_field: i32, ___deadline: MonotonicInstant, ) -> Result<(), Error>
pub fn two_way_table_request( &self, payload: &TablePayload, ___deadline: MonotonicInstant, ) -> Result<(), Error>
pub fn two_way_union_request( &self, payload: &UnionPayload, ___deadline: MonotonicInstant, ) -> Result<(), Error>
pub fn one_way_no_request(&self) -> Result<(), Error>
pub fn one_way_struct_request(&self, some_field: i32) -> Result<(), Error>
pub fn one_way_table_request(&self, payload: &TablePayload) -> Result<(), Error>
pub fn one_way_union_request(&self, payload: &UnionPayload) -> Result<(), Error>
Trait Implementations§
Source§impl Debug for ClosedTargetSynchronousProxy
impl Debug for ClosedTargetSynchronousProxy
Source§impl SynchronousProxy for ClosedTargetSynchronousProxy
impl SynchronousProxy for ClosedTargetSynchronousProxy
Source§type Proxy = ClosedTargetProxy
type Proxy = ClosedTargetProxy
The async proxy for the same protocol.
Source§type Protocol = ClosedTargetMarker
type Protocol = ClosedTargetMarker
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 ClosedTargetSynchronousProxy
impl RefUnwindSafe for ClosedTargetSynchronousProxy
impl Send for ClosedTargetSynchronousProxy
impl Sync for ClosedTargetSynchronousProxy
impl Unpin for ClosedTargetSynchronousProxy
impl UnwindSafe for ClosedTargetSynchronousProxy
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