pam_kanidm::module

Trait PamItem

Source
pub trait PamItem {
    // Required method
    fn item_type() -> PamItemType;
}
Expand description

§Safety

Type-level mapping for safely retrieving values with get_item.

See pam_get_item in http://www.linux-pam.org/Linux-PAM-html/mwg-expected-by-module-item.html

Required Methods§

Source

fn item_type() -> PamItemType

Maps a Rust type to a pam constant.

For example, the type PamConv maps to the constant PAM_CONV. The pam API contract specifies that when the API function pam_get_item is called with the constant PAM_CONV, it will return a value of type PamConv.

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§