pub trait OrgFreedesktopResolve1Manager {
Show 39 methods
// Required methods
fn resolve_hostname(
&self,
ifindex: i32,
name: &str,
family: i32,
flags: u64
) -> Result<(Vec<(i32, i32, Vec<u8>)>, String, u64), Error>;
fn resolve_address(
&self,
ifindex: i32,
family: i32,
address: Vec<u8>,
flags: u64
) -> Result<(Vec<(i32, String)>, u64), Error>;
fn resolve_record(
&self,
ifindex: i32,
name: &str,
class: u16,
type_: u16,
flags: u64
) -> Result<(Vec<(i32, u16, u16, Vec<u8>)>, u64), Error>;
fn resolve_service(
&self,
ifindex: i32,
name: &str,
type_: &str,
domain: &str,
family: i32,
flags: u64
) -> Result<(Vec<(u16, u16, u16, String, Vec<(i32, i32, Vec<u8>)>, String)>, Vec<Vec<u8>>, String, String, String, u64), Error>;
fn get_link(&self, ifindex: i32) -> Result<Path<'static>, Error>;
fn set_link_dns(
&self,
ifindex: i32,
addresses: Vec<(i32, Vec<u8>)>
) -> Result<(), Error>;
fn set_link_dnsex(
&self,
ifindex: i32,
addresses: Vec<(i32, Vec<u8>, u16, &str)>
) -> Result<(), Error>;
fn set_link_domains(
&self,
ifindex: i32,
domains: Vec<(&str, bool)>
) -> Result<(), Error>;
fn set_link_default_route(
&self,
ifindex: i32,
enable: bool
) -> Result<(), Error>;
fn set_link_llmnr(&self, ifindex: i32, mode: &str) -> Result<(), Error>;
fn set_link_multicast_dns(
&self,
ifindex: i32,
mode: &str
) -> Result<(), Error>;
fn set_link_dnsover_tls(&self, ifindex: i32, mode: &str) -> Result<(), Error>;
fn set_link_dnssec(&self, ifindex: i32, mode: &str) -> Result<(), Error>;
fn set_link_dnssecnegative_trust_anchors(
&self,
ifindex: i32,
names: Vec<&str>
) -> Result<(), Error>;
fn revert_link(&self, ifindex: i32) -> Result<(), Error>;
fn register_service(
&self,
name: &str,
name_template: &str,
type_: &str,
service_port: u16,
service_priority: u16,
service_weight: u16,
txt_datas: Vec<HashMap<&str, Vec<u8>>>
) -> Result<Path<'static>, Error>;
fn unregister_service(&self, service_path: Path<'_>) -> Result<(), Error>;
fn reset_statistics(&self) -> Result<(), Error>;
fn flush_caches(&self) -> Result<(), Error>;
fn reset_server_features(&self) -> Result<(), Error>;
fn llmnrhostname(&self) -> Result<String, Error>;
fn llmnr(&self) -> Result<String, Error>;
fn multicast_dns(&self) -> Result<String, Error>;
fn dnsover_tls(&self) -> Result<String, Error>;
fn dns(&self) -> Result<Vec<(i32, i32, Vec<u8>)>, Error>;
fn dnsex(&self) -> Result<Vec<(i32, i32, Vec<u8>, u16, String)>, Error>;
fn fallback_dns(&self) -> Result<Vec<(i32, i32, Vec<u8>)>, Error>;
fn fallback_dnsex(
&self
) -> Result<Vec<(i32, i32, Vec<u8>, u16, String)>, Error>;
fn current_dnsserver(&self) -> Result<(i32, i32, Vec<u8>), Error>;
fn current_dnsserver_ex(
&self
) -> Result<(i32, i32, Vec<u8>, u16, String), Error>;
fn domains(&self) -> Result<Vec<(i32, String, bool)>, Error>;
fn transaction_statistics(&self) -> Result<(u64, u64), Error>;
fn cache_statistics(&self) -> Result<(u64, u64, u64), Error>;
fn dnssec(&self) -> Result<String, Error>;
fn dnssecstatistics(&self) -> Result<(u64, u64, u64, u64), Error>;
fn dnssecsupported(&self) -> Result<bool, Error>;
fn dnssecnegative_trust_anchors(&self) -> Result<Vec<String>, Error>;
fn dnsstub_listener(&self) -> Result<String, Error>;
fn resolv_conf_mode(&self) -> Result<String, Error>;
}