Struct kanidm_unix_common::cache::CacheLayer[][src]

pub struct CacheLayer { /* fields omitted */ }

Implementations

impl CacheLayer[src]

pub async fn new(
    path: &str,
    timeout_seconds: u64,
    client: KanidmAsyncClient,
    pam_allow_groups: Vec<String>,
    default_shell: String,
    home_prefix: String,
    home_attr: HomeAttr,
    home_alias: Option<HomeAttr>,
    uid_attr_map: UidAttr,
    gid_attr_map: UidAttr
) -> Result<Self, ()>
[src]

pub async fn attempt_online(&self)[src]

pub async fn mark_offline(&self)[src]

pub async fn clear_cache(&self) -> Result<(), ()>[src]

pub async fn invalidate(&self) -> Result<(), ()>[src]

pub async fn check_nxcache(&self, id: &Id) -> bool[src]

pub async fn get_sshkeys(&self, account_id: &str) -> Result<Vec<String>, ()>[src]

pub async fn get_nssaccounts(&self) -> Result<Vec<NssUser>, ()>[src]

pub async fn get_nssaccount_name(
    &self,
    account_id: &str
) -> Result<Option<NssUser>, ()>
[src]

pub async fn get_nssaccount_gid(&self, gid: u32) -> Result<Option<NssUser>, ()>[src]

pub async fn get_nssgroups(&self) -> Result<Vec<NssGroup>, ()>[src]

pub async fn get_nssgroup_name(
    &self,
    grp_id: &str
) -> Result<Option<NssGroup>, ()>
[src]

pub async fn get_nssgroup_gid(&self, gid: u32) -> Result<Option<NssGroup>, ()>[src]

pub async fn pam_account_allowed(
    &self,
    account_id: &str
) -> Result<Option<bool>, ()>
[src]

pub async fn pam_account_authenticate(
    &self,
    account_id: &str,
    cred: &str
) -> Result<Option<bool>, ()>
[src]

pub async fn pam_account_beginsession(
    &self,
    account_id: &str
) -> Result<Option<HomeDirectoryInfo>, ()>
[src]

pub async fn test_connection(&self) -> bool[src]

Trait Implementations

impl Debug for CacheLayer[src]

Auto Trait Implementations

impl !RefUnwindSafe for CacheLayer

impl Send for CacheLayer

impl Sync for CacheLayer

impl Unpin for CacheLayer

impl !UnwindSafe for CacheLayer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,