pub struct ServicePublisherSynchronousProxy { /* private fields */ }
Implementations§
source§impl ServicePublisherSynchronousProxy
impl ServicePublisherSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<ServicePublisherEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<ServicePublisherEvent, 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 publish_service(
&self,
service_name: &str,
provider: ClientEnd<ServiceProviderMarker>
) -> Result<(), Error>
pub fn publish_service( &self, service_name: &str, provider: ClientEnd<ServiceProviderMarker> ) -> Result<(), Error>
Register a new service to be exported by Overnet.
If an existing service has the same service_name
, it’s replaced by this service.