pub struct CapabilityFactorySynchronousProxy { /* private fields */ }
Implementations§
Source§impl CapabilityFactorySynchronousProxy
impl CapabilityFactorySynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CapabilityFactoryEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CapabilityFactoryEvent, 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 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 From<CapabilityFactorySynchronousProxy> for Handle
impl From<CapabilityFactorySynchronousProxy> for Handle
Source§fn from(value: CapabilityFactorySynchronousProxy) -> Self
fn from(value: CapabilityFactorySynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl From<Channel> for CapabilityFactorySynchronousProxy
impl From<Channel> for CapabilityFactorySynchronousProxy
Source§impl SynchronousProxy for CapabilityFactorySynchronousProxy
impl SynchronousProxy for CapabilityFactorySynchronousProxy
Source§type Proxy = CapabilityFactoryProxy
type Proxy = CapabilityFactoryProxy
The async proxy for the same protocol.
Source§type Protocol = CapabilityFactoryMarker
type Protocol = CapabilityFactoryMarker
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 CapabilityFactorySynchronousProxy
impl RefUnwindSafe for CapabilityFactorySynchronousProxy
impl Send for CapabilityFactorySynchronousProxy
impl Sync for CapabilityFactorySynchronousProxy
impl Unpin for CapabilityFactorySynchronousProxy
impl UnwindSafe for CapabilityFactorySynchronousProxy
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