Trait ResolverExt

Source
pub trait ResolverExt:
    IsA<Resolver>
    + Sealed
    + 'static {
Show 20 methods // Provided methods fn timeout(&self) -> u32 { ... } fn lookup_by_address( &self, address: &impl IsA<InetAddress>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<GString, Error> { ... } fn lookup_by_address_async<P: FnOnce(Result<GString, Error>) + 'static>( &self, address: &impl IsA<InetAddress>, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) { ... } fn lookup_by_address_future( &self, address: &(impl IsA<InetAddress> + Clone + 'static), ) -> Pin<Box_<dyn Future<Output = Result<GString, Error>> + 'static>> { ... } fn lookup_by_name( &self, hostname: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<InetAddress>, Error> { ... } fn lookup_by_name_async<P: FnOnce(Result<Vec<InetAddress>, Error>) + 'static>( &self, hostname: &str, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) { ... } fn lookup_by_name_future( &self, hostname: &str, ) -> Pin<Box_<dyn Future<Output = Result<Vec<InetAddress>, Error>> + 'static>> { ... } fn lookup_by_name_with_flags( &self, hostname: &str, flags: ResolverNameLookupFlags, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<InetAddress>, Error> { ... } fn lookup_by_name_with_flags_async<P: FnOnce(Result<Vec<InetAddress>, Error>) + 'static>( &self, hostname: &str, flags: ResolverNameLookupFlags, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) { ... } fn lookup_by_name_with_flags_future( &self, hostname: &str, flags: ResolverNameLookupFlags, ) -> Pin<Box_<dyn Future<Output = Result<Vec<InetAddress>, Error>> + 'static>> { ... } fn lookup_records( &self, rrname: &str, record_type: ResolverRecordType, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<Variant>, Error> { ... } fn lookup_records_async<P: FnOnce(Result<Vec<Variant>, Error>) + 'static>( &self, rrname: &str, record_type: ResolverRecordType, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) { ... } fn lookup_records_future( &self, rrname: &str, record_type: ResolverRecordType, ) -> Pin<Box_<dyn Future<Output = Result<Vec<Variant>, Error>> + 'static>> { ... } fn lookup_service( &self, service: &str, protocol: &str, domain: &str, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<SrvTarget>, Error> { ... } fn lookup_service_async<P: FnOnce(Result<Vec<SrvTarget>, Error>) + 'static>( &self, service: &str, protocol: &str, domain: &str, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) { ... } fn lookup_service_future( &self, service: &str, protocol: &str, domain: &str, ) -> Pin<Box_<dyn Future<Output = Result<Vec<SrvTarget>, Error>> + 'static>> { ... } fn set_default(&self) { ... } fn set_timeout(&self, timeout_ms: u32) { ... } fn connect_reload<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... } fn connect_timeout_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn timeout(&self) -> u32

Available on crate feature v2_78 only.
Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn lookup_by_name_with_flags( &self, hostname: &str, flags: ResolverNameLookupFlags, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<Vec<InetAddress>, Error>

Available on crate feature v2_60 only.
Source

fn lookup_by_name_with_flags_async<P: FnOnce(Result<Vec<InetAddress>, Error>) + 'static>( &self, hostname: &str, flags: ResolverNameLookupFlags, cancellable: Option<&impl IsA<Cancellable>>, callback: P, )

Available on crate feature v2_60 only.
Source

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

Available on crate feature v2_60 only.
Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn set_default(&self)

Source

fn set_timeout(&self, timeout_ms: u32)

Available on crate feature v2_78 only.
Source

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

Source

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

Available on crate feature v2_78 only.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§