pub enum LookupAdminRequest {
SetDnsServers {
servers: Vec<SocketAddress>,
responder: LookupAdminSetDnsServersResponder,
},
GetDnsServers {
responder: LookupAdminGetDnsServersResponder,
},
}Expand description
Provides administration controls over name resolution settings.
Variants§
SetDnsServers
Sets the DNS servers to servers
- request
serversThe list of servers to use for domain name resolution, in priority order. An empty list means no servers will be used and name resolution may fail. EachSocketAddressinserversmust be a valid unicast socket address. The list of servers will be deduplicated.
- error Returns
ZX_ERR_INVALID_ARGSif any of the provided addresses does not meet the conditions above.
GetDnsServers
Gets the DNS servers currently in use to resolve name lookups.
- response
serversThe list of servers in use byLookupAdmin, in priority order.
Fields
§
responder: LookupAdminGetDnsServersResponderImplementations§
Source§impl LookupAdminRequest
impl LookupAdminRequest
pub fn into_set_dns_servers( self, ) -> Option<(Vec<SocketAddress>, LookupAdminSetDnsServersResponder)>
pub fn into_get_dns_servers(self) -> Option<LookupAdminGetDnsServersResponder>
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 LookupAdminRequest
impl !RefUnwindSafe for LookupAdminRequest
impl Send for LookupAdminRequest
impl Sync for LookupAdminRequest
impl Unpin for LookupAdminRequest
impl !UnwindSafe for LookupAdminRequest
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