pub struct ServiceProviderSynchronousProxy { /* private fields */ }
Implementations§
source§impl ServiceProviderSynchronousProxy
impl ServiceProviderSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<ServiceProviderEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<ServiceProviderEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn connect_to_service(
&self,
chan: Channel,
info: ConnectionInfo
) -> Result<(), Error>
pub fn connect_to_service( &self, chan: Channel, info: ConnectionInfo ) -> Result<(), Error>
Connect chan
to the service (called in response to Overnet.ConnectToService).
info
provides additional data about the connection request.