pub enum PublisherRequest {
PublishServiceInstance {
service: String,
instance: String,
media: Media,
perform_probe: bool,
publication_responder: ClientEnd<PublicationResponder_Marker>,
responder: PublisherPublishServiceInstanceResponder,
},
}
Expand description
Discoverable protocol for publishing service instances. Deprecated: use ServiceInstancePublisher.
Variants§
PublishServiceInstance
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.
Implementations§
Source§impl PublisherRequest
impl PublisherRequest
pub fn into_publish_service_instance( self, ) -> Option<(String, String, Media, bool, ClientEnd<PublicationResponder_Marker>, PublisherPublishServiceInstanceResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL