Struct pamsm::Pam[][src]

pub struct Pam(_);

Opaque PAM handle, with additional native methods available via PamLibExt.

Trait Implementations

impl PamLibExt for Pam
[src]

Get the username. If the PAM_USER item is not set, this function prompts for a username (like get_authtok). Read more

Get the username, i.e. the PAM_USER item. If it's not set return None.

Get the cached authentication token.

Get the cached authentication token or prompt the user for one if there isn't any.

Get the remote hostname.

Get the remote username.

Auto Trait Implementations

impl !Send for Pam

impl !Sync for Pam