Trait pam_kanidm::module::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§
sourcefn item_type() -> PamItemType
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
.
Object Safety§
This trait is not object safe.