pub enum HostNameSubscriberRequest {
SubscribeToHostName {
host: String,
options: HostNameSubscriptionOptions,
listener: ClientEnd<HostNameSubscriptionListenerMarker>,
control_handle: HostNameSubscriberControlHandle,
},
}
Expand description
Discoverable protocol for subscribing to address changes for given host names.
Variants§
SubscribeToHostName
Gets the addresses for the specified host.
- request
host
the simple name of the host. - request
options
options to be applied to the subscription. - request
listener
client end of theHostNameSubscriptionListener
channel.
Fields
§
options: HostNameSubscriptionOptions
§
listener: ClientEnd<HostNameSubscriptionListenerMarker>
§
control_handle: HostNameSubscriberControlHandle
Implementations§
source§impl HostNameSubscriberRequest
impl HostNameSubscriberRequest
pub fn into_subscribe_to_host_name( self, ) -> Option<(String, HostNameSubscriptionOptions, ClientEnd<HostNameSubscriptionListenerMarker>, HostNameSubscriberControlHandle)>
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 HostNameSubscriberRequest
impl !RefUnwindSafe for HostNameSubscriberRequest
impl Send for HostNameSubscriberRequest
impl Sync for HostNameSubscriberRequest
impl Unpin for HostNameSubscriberRequest
impl !UnwindSafe for HostNameSubscriberRequest
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