Struct fidl::endpoints::ZirconClient
source · pub struct ZirconClient;
Expand description
The fake “client” produced by ProxyHasClient
. Analogous to an FDomain client.
Implementations§
source§impl ZirconClient
impl ZirconClient
sourcepub async fn create_event_pair(
&self,
) -> Result<(EventPair, EventPair), Infallible>
pub async fn create_event_pair( &self, ) -> Result<(EventPair, EventPair), Infallible>
Equivalent to [EventPair::create
]
sourcepub async fn create_event(&self) -> Result<Event, Infallible>
pub async fn create_event(&self) -> Result<Event, Infallible>
Equivalent to [Event::create
]
sourcepub async fn create_stream_socket(&self) -> Result<(Socket, Socket), Infallible>
pub async fn create_stream_socket(&self) -> Result<(Socket, Socket), Infallible>
Equivalent to [Socket::create_stream
]
sourcepub async fn create_datagram_socket(
&self,
) -> Result<(Socket, Socket), Infallible>
pub async fn create_datagram_socket( &self, ) -> Result<(Socket, Socket), Infallible>
Equivalent to [Socket::create_datagram
]
sourcepub async fn create_channel(&self) -> Result<(Channel, Channel), Infallible>
pub async fn create_channel(&self) -> Result<(Channel, Channel), Infallible>
Equivalent to Channel::create
sourcepub async fn create_endpoints<T: ProtocolMarker>(
&self,
) -> Result<(ClientEnd<T>, ServerEnd<T>), Infallible>
pub async fn create_endpoints<T: ProtocolMarker>( &self, ) -> Result<(ClientEnd<T>, ServerEnd<T>), Infallible>
Equivalent to the module level create_endpoints
sourcepub async fn create_proxy<T: ProtocolMarker>(
&self,
) -> Result<(T::Proxy, ServerEnd<T>), Error>
pub async fn create_proxy<T: ProtocolMarker>( &self, ) -> Result<(T::Proxy, ServerEnd<T>), Error>
Equivalent to the module level create_proxy
Auto Trait Implementations§
impl Freeze for ZirconClient
impl RefUnwindSafe for ZirconClient
impl Send for ZirconClient
impl Sync for ZirconClient
impl Unpin for ZirconClient
impl UnwindSafe for ZirconClient
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