pub enum ServiceInstanceResolverRequest {
ResolveServiceInstance {
service: String,
instance: String,
timeout: i64,
options: ServiceInstanceResolutionOptions,
responder: ServiceInstanceResolverResolveServiceInstanceResponder,
},
}
Expand description
Discoverable protocol for resolving service instances.
Variants§
ResolveServiceInstance
Resolves a specific service instance by sending an SRV query and returns the endpoints, target and text records.
- request
service
name of the type of service to be resolved. For example, cast uses ‘_googlecast._tcp.’. - request
instance
name of the instance to be resolved. This is often a descriptive name such asOffice Printer
or a name containing a large random number. - request
timeout
specifies how long the service should wait before giving up when waiting for a response to a resolution query. - request
options
options to be applied to the resolution.
A successful resolution will return target and at least one endpoint. Unsuccessful resolution occurs when either the service instance doesn’t respond or there is no endpoint (IP & port).
Fields
§
options: ServiceInstanceResolutionOptions
Implementations§
Source§impl ServiceInstanceResolverRequest
impl ServiceInstanceResolverRequest
pub fn into_resolve_service_instance( self, ) -> Option<(String, String, i64, ServiceInstanceResolutionOptions, ServiceInstanceResolverResolveServiceInstanceResponder)>
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 ServiceInstanceResolverRequest
impl !RefUnwindSafe for ServiceInstanceResolverRequest
impl Send for ServiceInstanceResolverRequest
impl Sync for ServiceInstanceResolverRequest
impl Unpin for ServiceInstanceResolverRequest
impl !UnwindSafe for ServiceInstanceResolverRequest
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