pub struct CapabilityFactoryProxy { /* private fields */ }
Implementations§
Source§impl CapabilityFactoryProxy
impl CapabilityFactoryProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.component.runtime/CapabilityFactory.
Sourcepub fn take_event_stream(&self) -> CapabilityFactoryEventStream
pub fn take_event_stream(&self) -> CapabilityFactoryEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
pub fn create_connector( &self, receiver_client_end: ClientEnd<ReceiverMarker>, connector_server_end: ServerEnd<ConnectorMarker>, ) -> Result<(), Error>
pub fn create_dir_connector( &self, dir_receiver_client_end: ClientEnd<DirReceiverMarker>, dir_connector_server_end: ServerEnd<DirConnectorMarker>, ) -> Result<(), Error>
pub fn create_dictionary( &self, dictionary_server_end: ServerEnd<DictionaryMarker>, ) -> Result<(), Error>
pub fn create_connector_router( &self, router_client_end: ClientEnd<ConnectorRouterMarker>, router_server_end: ServerEnd<ConnectorRouterMarker>, ) -> Result<(), Error>
pub fn create_dir_connector_router( &self, router_client_end: ClientEnd<DirConnectorRouterMarker>, router_server_end: ServerEnd<DirConnectorRouterMarker>, ) -> Result<(), Error>
pub fn create_dictionary_router( &self, router_client_end: ClientEnd<DictionaryRouterMarker>, router_server_end: ServerEnd<DictionaryRouterMarker>, ) -> Result<(), Error>
pub fn create_data_router( &self, router_client_end: ClientEnd<DataRouterMarker>, router_server_end: ServerEnd<DataRouterMarker>, ) -> Result<(), Error>
Trait Implementations§
Source§impl CapabilityFactoryProxyInterface for CapabilityFactoryProxy
impl CapabilityFactoryProxyInterface for CapabilityFactoryProxy
fn create_connector( &self, receiver_client_end: ClientEnd<ReceiverMarker>, connector_server_end: ServerEnd<ConnectorMarker>, ) -> Result<(), Error>
fn create_dir_connector( &self, dir_receiver_client_end: ClientEnd<DirReceiverMarker>, dir_connector_server_end: ServerEnd<DirConnectorMarker>, ) -> Result<(), Error>
fn create_dictionary( &self, dictionary_server_end: ServerEnd<DictionaryMarker>, ) -> Result<(), Error>
fn create_connector_router( &self, router_client_end: ClientEnd<ConnectorRouterMarker>, router_server_end: ServerEnd<ConnectorRouterMarker>, ) -> Result<(), Error>
fn create_dir_connector_router( &self, router_client_end: ClientEnd<DirConnectorRouterMarker>, router_server_end: ServerEnd<DirConnectorRouterMarker>, ) -> Result<(), Error>
fn create_dictionary_router( &self, router_client_end: ClientEnd<DictionaryRouterMarker>, router_server_end: ServerEnd<DictionaryRouterMarker>, ) -> Result<(), Error>
fn create_data_router( &self, router_client_end: ClientEnd<DataRouterMarker>, router_server_end: ServerEnd<DataRouterMarker>, ) -> Result<(), Error>
Source§impl Clone for CapabilityFactoryProxy
impl Clone for CapabilityFactoryProxy
Source§fn clone(&self) -> CapabilityFactoryProxy
fn clone(&self) -> CapabilityFactoryProxy
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 CapabilityFactoryProxy
impl Debug for CapabilityFactoryProxy
Source§impl Proxy for CapabilityFactoryProxy
impl Proxy for CapabilityFactoryProxy
Source§type Protocol = CapabilityFactoryMarker
type Protocol = CapabilityFactoryMarker
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 CapabilityFactoryProxy
impl !RefUnwindSafe for CapabilityFactoryProxy
impl Send for CapabilityFactoryProxy
impl Sync for CapabilityFactoryProxy
impl Unpin for CapabilityFactoryProxy
impl !UnwindSafe for CapabilityFactoryProxy
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