pub enum ServiceInstancePublicationResponder_Request {
OnPublication {
publication_cause: ServiceInstancePublicationCause,
subtype: Option<String>,
source_addresses: Vec<IpAddress>,
responder: ServiceInstancePublicationResponder_OnPublicationResponder,
},
}
Expand description
Client-supplied publication responder interface.
Variants§
OnPublication
Provides instance information for initial announcements and query
responses relating to the service instance specified in
ServiceInstancePublisher.PublishServiceInstance
.
- request
publication_cause
the action that motivates this publication. - request
subtype
the subtype if the publication relates to a subtype of the service, otherwise null. - request
source_addresses
addresses from which queries arrived, if applicable.
- response
publication
the desired publication. Strings inpublication.text
are sent in the TXT resource.
- error indicates the publication should not be sent.
If no publication should be sent, this method should return a DO_NOT_RESPOND
error.
Fields
§
publication_cause: ServiceInstancePublicationCause
Implementations§
Source§impl ServiceInstancePublicationResponder_Request
impl ServiceInstancePublicationResponder_Request
pub fn into_on_publication( self, ) -> Option<(ServiceInstancePublicationCause, Option<String>, Vec<IpAddress>, ServiceInstancePublicationResponder_OnPublicationResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServiceInstancePublicationResponder_Request
impl !RefUnwindSafe for ServiceInstancePublicationResponder_Request
impl Send for ServiceInstancePublicationResponder_Request
impl Sync for ServiceInstancePublicationResponder_Request
impl Unpin for ServiceInstancePublicationResponder_Request
impl !UnwindSafe for ServiceInstancePublicationResponder_Request
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