pub struct PublisherSynchronousProxy { /* private fields */ }
Implementations§
Source§impl PublisherSynchronousProxy
impl PublisherSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PublisherEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PublisherEvent, 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_instance(
&self,
service: &str,
instance: &str,
media: Media,
perform_probe: bool,
publication_responder: ClientEnd<PublicationResponder_Marker>,
___deadline: MonotonicInstant,
) -> Result<PublisherPublishServiceInstanceResult, Error>
pub fn publish_service_instance( &self, service: &str, instance: &str, media: Media, perform_probe: bool, publication_responder: ClientEnd<PublicationResponder_Marker>, ___deadline: MonotonicInstant, ) -> Result<PublisherPublishServiceInstanceResult, Error>
Publishes a service instance. publication_responder
is consulted via its
OnPublication
method for initial announcements and to answer queries.
The service is published until the publication_responder
channel closes. In
addition to announcements and queries for the service type, all queries
for subtypes are answered subject to filtering through the responder.
perform_probe
indicates whether a probe for a conflicting instance
should be performed before publishing the instance. This value should
be true
unless the instance name is known to be unique.
If a service with the same service and instance names is already published, the old publication will be terminated, and the responder channel for the old publication will be closed.
Trait Implementations§
Source§impl Debug for PublisherSynchronousProxy
impl Debug for PublisherSynchronousProxy
Source§impl SynchronousProxy for PublisherSynchronousProxy
impl SynchronousProxy for PublisherSynchronousProxy
Source§type Proxy = PublisherProxy
type Proxy = PublisherProxy
Source§type Protocol = PublisherMarker
type Protocol = PublisherMarker
Proxy
controls.