pub struct ServiceProxy(/* private fields */);
Expand description
A service with protocols in it
Implementations§
Source§impl ServiceProxy
impl ServiceProxy
pub fn connect_to_first(&self) -> Result<ProtocolAProxy, Error>
Sourcepub fn connect_to_first_sync(&self) -> Result<ProtocolASynchronousProxy, Error>
pub fn connect_to_first_sync(&self) -> Result<ProtocolASynchronousProxy, Error>
Like connect_to_first
, but returns a sync proxy.
See Self::connect_to_first
for more details.
Sourcepub fn connect_channel_to_first(
&self,
server_end: ServerEnd<ProtocolAMarker>,
) -> Result<(), Error>
pub fn connect_channel_to_first( &self, server_end: ServerEnd<ProtocolAMarker>, ) -> Result<(), Error>
Like connect_to_first
, but accepts a server end.
See Self::connect_to_first
for more details.
pub fn connect_to_second(&self) -> Result<ProtocolBProxy, Error>
Sourcepub fn connect_to_second_sync(&self) -> Result<ProtocolBSynchronousProxy, Error>
pub fn connect_to_second_sync(&self) -> Result<ProtocolBSynchronousProxy, Error>
Like connect_to_second
, but returns a sync proxy.
See Self::connect_to_second
for more details.
Sourcepub fn connect_channel_to_second(
&self,
server_end: ServerEnd<ProtocolBMarker>,
) -> Result<(), Error>
pub fn connect_channel_to_second( &self, server_end: ServerEnd<ProtocolBMarker>, ) -> Result<(), Error>
Like connect_to_second
, but accepts a server end.
See Self::connect_to_second
for more details.
pub fn instance_name(&self) -> &str
Trait Implementations§
Source§impl ServiceProxy for ServiceProxy
impl ServiceProxy for ServiceProxy
Source§type Service = ServiceMarker
type Service = ServiceMarker
The FIDL service this proxy represents.
Auto Trait Implementations§
impl Freeze for ServiceProxy
impl !RefUnwindSafe for ServiceProxy
impl !Send for ServiceProxy
impl !Sync for ServiceProxy
impl Unpin for ServiceProxy
impl !UnwindSafe for ServiceProxy
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