pub enum ServiceSubscriptionListenerRequest {
OnInstanceDiscovered {
instance: ServiceInstance,
responder: ServiceSubscriptionListenerOnInstanceDiscoveredResponder,
},
OnInstanceChanged {
instance: ServiceInstance,
responder: ServiceSubscriptionListenerOnInstanceChangedResponder,
},
OnInstanceLost {
service: String,
instance: String,
responder: ServiceSubscriptionListenerOnInstanceLostResponder,
},
OnQuery {
resource_type: ResourceType,
responder: ServiceSubscriptionListenerOnQueryResponder,
},
}
Expand description
Client-implemented interface for subscribers. Method replies are used to throttle traffic. The service won’t necessarily wait for a reply before calling another method.
Variants§
OnInstanceDiscovered
Notifies the subscriber that a service instance has been discovered.
Fields
§
instance: ServiceInstance
OnInstanceChanged
Notifies the subscriber that addresses or text for a known service instance have changed.
OnInstanceLost
Notifies the subscriber that a known service instance has been lost.
Fields
OnQuery
Notifies the subscriber that a PTR query has been sent.
Implementations§
Source§impl ServiceSubscriptionListenerRequest
impl ServiceSubscriptionListenerRequest
pub fn into_on_instance_discovered( self, ) -> Option<(ServiceInstance, ServiceSubscriptionListenerOnInstanceDiscoveredResponder)>
pub fn into_on_instance_changed( self, ) -> Option<(ServiceInstance, ServiceSubscriptionListenerOnInstanceChangedResponder)>
pub fn into_on_instance_lost( self, ) -> Option<(String, String, ServiceSubscriptionListenerOnInstanceLostResponder)>
pub fn into_on_query( self, ) -> Option<(ResourceType, ServiceSubscriptionListenerOnQueryResponder)>
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 ServiceSubscriptionListenerRequest
impl !RefUnwindSafe for ServiceSubscriptionListenerRequest
impl Send for ServiceSubscriptionListenerRequest
impl Sync for ServiceSubscriptionListenerRequest
impl Unpin for ServiceSubscriptionListenerRequest
impl !UnwindSafe for ServiceSubscriptionListenerRequest
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