pub struct FactoryProxy { /* private fields */ }
Implementations§
source§impl FactoryProxy
impl FactoryProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.component.sandbox/Factory.
sourcepub fn take_event_stream(&self) -> FactoryEventStream
pub fn take_event_stream(&self) -> FactoryEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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>
) -> QueryResponseFut<SenderCapability>
pub fn create_sender( &self, receiver: ClientEnd<ReceiverMarker> ) -> QueryResponseFut<SenderCapability>
Creates a Sender
from a client served Receiver
.
sourcepub fn create_dictionary(&self) -> QueryResponseFut<ClientEnd<DictionaryMarker>>
pub fn create_dictionary(&self) -> QueryResponseFut<ClientEnd<DictionaryMarker>>
Creates a new empty [Dictionary
].
Trait Implementations§
source§impl Clone for FactoryProxy
impl Clone for FactoryProxy
source§fn clone(&self) -> FactoryProxy
fn clone(&self) -> FactoryProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FactoryProxy
impl Debug for FactoryProxy
source§impl FactoryProxyInterface for FactoryProxy
impl FactoryProxyInterface for FactoryProxy
fn connect_to_sender( &self, capability: SenderCapability, server_end: ServerEnd<SenderMarker> ) -> Result<(), Error>
type CreateSenderResponseFut = QueryResponseFut<SenderCapability>
fn create_sender( &self, receiver: ClientEnd<ReceiverMarker> ) -> Self::CreateSenderResponseFut
type CreateDictionaryResponseFut = QueryResponseFut<ClientEnd<DictionaryMarker>>
fn create_dictionary(&self) -> Self::CreateDictionaryResponseFut
source§impl Proxy for FactoryProxy
impl Proxy for FactoryProxy
§type Protocol = FactoryMarker
type Protocol = FactoryMarker
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
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Auto Trait Implementations§
impl Freeze for FactoryProxy
impl !RefUnwindSafe for FactoryProxy
impl Send for FactoryProxy
impl Sync for FactoryProxy
impl Unpin for FactoryProxy
impl !UnwindSafe for FactoryProxy
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