[][src]Trait gio::prelude::ResolverExt

pub trait ResolverExt: 'static {
    fn lookup_by_address<P: IsA<InetAddress>, Q: IsA<Cancellable>>(
        &self,
        address: &P,
        cancellable: Option<&Q>
    ) -> Result<GString, Error>;
fn lookup_by_address_async<P: IsA<InetAddress>, Q: IsA<Cancellable>, R: FnOnce(Result<GString, Error>) + Send + 'static>(
        &self,
        address: &P,
        cancellable: Option<&Q>,
        callback: R
    );
fn lookup_by_address_async_future<P: IsA<InetAddress> + Clone + 'static>(
        &self,
        address: &P
    ) -> Pin<Box_<dyn Future<Output = Result<GString, Error>> + 'static>>;
fn lookup_by_name<P: IsA<Cancellable>>(
        &self,
        hostname: &str,
        cancellable: Option<&P>
    ) -> Result<Vec<InetAddress>, Error>;
fn lookup_by_name_async<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<InetAddress>, Error>) + Send + 'static>(
        &self,
        hostname: &str,
        cancellable: Option<&P>,
        callback: Q
    );
fn lookup_by_name_async_future(
        &self,
        hostname: &str
    ) -> Pin<Box_<dyn Future<Output = Result<Vec<InetAddress>, Error>> + 'static>>;
fn lookup_records<P: IsA<Cancellable>>(
        &self,
        rrname: &str,
        record_type: ResolverRecordType,
        cancellable: Option<&P>
    ) -> Result<Vec<Variant>, Error>;
fn lookup_records_async<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<Variant>, Error>) + Send + 'static>(
        &self,
        rrname: &str,
        record_type: ResolverRecordType,
        cancellable: Option<&P>,
        callback: Q
    );
fn lookup_records_async_future(
        &self,
        rrname: &str,
        record_type: ResolverRecordType
    ) -> Pin<Box_<dyn Future<Output = Result<Vec<Variant>, Error>> + 'static>>;
fn lookup_service<P: IsA<Cancellable>>(
        &self,
        service: &str,
        protocol: &str,
        domain: &str,
        cancellable: Option<&P>
    ) -> Result<Vec<SrvTarget>, Error>;
fn lookup_service_async<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<SrvTarget>, Error>) + Send + 'static>(
        &self,
        service: &str,
        protocol: &str,
        domain: &str,
        cancellable: Option<&P>,
        callback: Q
    );
fn lookup_service_async_future(
        &self,
        service: &str,
        protocol: &str,
        domain: &str
    ) -> Pin<Box_<dyn Future<Output = Result<Vec<SrvTarget>, Error>> + 'static>>;
fn set_default(&self);
fn connect_reload<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; }

Required methods

fn lookup_by_address<P: IsA<InetAddress>, Q: IsA<Cancellable>>(
    &self,
    address: &P,
    cancellable: Option<&Q>
) -> Result<GString, Error>

fn lookup_by_address_async<P: IsA<InetAddress>, Q: IsA<Cancellable>, R: FnOnce(Result<GString, Error>) + Send + 'static>(
    &self,
    address: &P,
    cancellable: Option<&Q>,
    callback: R
)

fn lookup_by_address_async_future<P: IsA<InetAddress> + Clone + 'static>(
    &self,
    address: &P
) -> Pin<Box_<dyn Future<Output = Result<GString, Error>> + 'static>>

fn lookup_by_name<P: IsA<Cancellable>>(
    &self,
    hostname: &str,
    cancellable: Option<&P>
) -> Result<Vec<InetAddress>, Error>

fn lookup_by_name_async<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<InetAddress>, Error>) + Send + 'static>(
    &self,
    hostname: &str,
    cancellable: Option<&P>,
    callback: Q
)

fn lookup_by_name_async_future(
    &self,
    hostname: &str
) -> Pin<Box_<dyn Future<Output = Result<Vec<InetAddress>, Error>> + 'static>>

fn lookup_records<P: IsA<Cancellable>>(
    &self,
    rrname: &str,
    record_type: ResolverRecordType,
    cancellable: Option<&P>
) -> Result<Vec<Variant>, Error>

fn lookup_records_async<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<Variant>, Error>) + Send + 'static>(
    &self,
    rrname: &str,
    record_type: ResolverRecordType,
    cancellable: Option<&P>,
    callback: Q
)

fn lookup_records_async_future(
    &self,
    rrname: &str,
    record_type: ResolverRecordType
) -> Pin<Box_<dyn Future<Output = Result<Vec<Variant>, Error>> + 'static>>

fn lookup_service<P: IsA<Cancellable>>(
    &self,
    service: &str,
    protocol: &str,
    domain: &str,
    cancellable: Option<&P>
) -> Result<Vec<SrvTarget>, Error>

fn lookup_service_async<P: IsA<Cancellable>, Q: FnOnce(Result<Vec<SrvTarget>, Error>) + Send + 'static>(
    &self,
    service: &str,
    protocol: &str,
    domain: &str,
    cancellable: Option<&P>,
    callback: Q
)

fn lookup_service_async_future(
    &self,
    service: &str,
    protocol: &str,
    domain: &str
) -> Pin<Box_<dyn Future<Output = Result<Vec<SrvTarget>, Error>> + 'static>>

fn set_default(&self)

fn connect_reload<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<Resolver>> ResolverExt for O[src]

Loading content...