pub struct LookupAdminSynchronousProxy { /* private fields */ }
Implementations§
Source§impl LookupAdminSynchronousProxy
impl LookupAdminSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<LookupAdminEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<LookupAdminEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn set_dns_servers(
&self,
servers: &[SocketAddress],
___deadline: MonotonicInstant,
) -> Result<LookupAdminSetDnsServersResult, Error>
pub fn set_dns_servers( &self, servers: &[SocketAddress], ___deadline: MonotonicInstant, ) -> Result<LookupAdminSetDnsServersResult, Error>
Sets the DNS servers to servers
- request
servers
The 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. EachSocketAddress
inservers
must be a valid unicast socket address. The list of servers will be deduplicated.
- error Returns
ZX_ERR_INVALID_ARGS
if any of the provided addresses does not meet the conditions above.
Sourcepub fn get_dns_servers(
&self,
___deadline: MonotonicInstant,
) -> Result<Vec<SocketAddress>, Error>
pub fn get_dns_servers( &self, ___deadline: MonotonicInstant, ) -> Result<Vec<SocketAddress>, Error>
Gets the DNS servers currently in use to resolve name lookups.
- response
servers
The list of servers in use byLookupAdmin
, in priority order.
Trait Implementations§
Source§impl Debug for LookupAdminSynchronousProxy
impl Debug for LookupAdminSynchronousProxy
Source§impl SynchronousProxy for LookupAdminSynchronousProxy
impl SynchronousProxy for LookupAdminSynchronousProxy
Source§type Proxy = LookupAdminProxy
type Proxy = LookupAdminProxy
The async proxy for the same protocol.
Source§type Protocol = LookupAdminMarker
type Protocol = LookupAdminMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for LookupAdminSynchronousProxy
impl RefUnwindSafe for LookupAdminSynchronousProxy
impl Send for LookupAdminSynchronousProxy
impl Sync for LookupAdminSynchronousProxy
impl Unpin for LookupAdminSynchronousProxy
impl UnwindSafe for LookupAdminSynchronousProxy
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