Skip to main content

DaemonPlatform

Trait DaemonPlatform 

Source
pub trait DaemonPlatform: Send + Sync {
    // Required methods
    fn home_dir(&self, user: &str) -> Option<PathBuf>;
    fn lookup_host(&self, host: &str) -> Option<HostInfo>;
}
Expand description

OS services used while resolving a request.

Required Methods§

Source

fn home_dir(&self, user: &str) -> Option<PathBuf>

Home directory of user (~user expansion).

Source

fn lookup_host(&self, host: &str) -> Option<HostInfo>

Resolve a client-supplied host name; None when it does not resolve.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§