pub struct FactorySynchronousProxy { /* private fields */ }
Implementations§
source§impl FactorySynchronousProxy
impl FactorySynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<FactoryEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<FactoryEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn connect_to_sender(
&self,
capability: SenderCapability,
server_end: ServerEnd<SenderMarker>
) -> Result<(), Error>
pub fn connect_to_sender( &self, capability: SenderCapability, server_end: ServerEnd<SenderMarker> ) -> Result<(), Error>
Operate on the provided sender capability.
Consumes a token referencing a bedrock object and serves the
corresponding FIDL representation on server_end
. The peer of the
server_end
is another reference to the bedrock object. Dropping the
control channel decreases one reference on the object.
sourcepub fn create_sender(
&self,
receiver: ClientEnd<ReceiverMarker>,
___deadline: Time
) -> Result<SenderCapability, Error>
pub fn create_sender( &self, receiver: ClientEnd<ReceiverMarker>, ___deadline: Time ) -> Result<SenderCapability, Error>
Creates a Sender
from a client served Receiver
.
sourcepub fn create_dictionary(
&self,
___deadline: Time
) -> Result<ClientEnd<DictionaryMarker>, Error>
pub fn create_dictionary( &self, ___deadline: Time ) -> Result<ClientEnd<DictionaryMarker>, Error>
Creates a new empty [Dictionary
].
Trait Implementations§
source§impl Debug for FactorySynchronousProxy
impl Debug for FactorySynchronousProxy
source§impl SynchronousProxy for FactorySynchronousProxy
impl SynchronousProxy for FactorySynchronousProxy
§type Proxy = FactoryProxy
type Proxy = FactoryProxy
The async proxy for the same protocol.
§type Protocol = FactoryMarker
type Protocol = FactoryMarker
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 FactorySynchronousProxy
impl RefUnwindSafe for FactorySynchronousProxy
impl Send for FactorySynchronousProxy
impl Sync for FactorySynchronousProxy
impl Unpin for FactorySynchronousProxy
impl UnwindSafe for FactorySynchronousProxy
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