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