[−][src]Struct redox_users::Config
A generic configuration that allows fine control of an AllUsers or
AllGroups.
auth_delay is not used by AllGroups
In most situations, Config::default
will work just fine. The other fields are for finer control if it is
required.
Example
use std::time::Duration; let cfg = Config::default() .min_id(500) .max_id(1000) .auth_delay(Duration::from_secs(5));
Implementations
impl Config[src]
pub fn auth_delay(self, delay: Duration) -> Config[src]
Set the delay for a failed authentication. Default is 3 seconds.
pub fn min_id(self, id: usize) -> Config[src]
Set the smallest ID possible to use when finding an unused ID.
pub fn max_id(self, id: usize) -> Config[src]
Set the largest possible ID to use when finding an unused ID.
pub fn scheme(self, scheme: String) -> Config[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config[src]
impl Send for Config[src]
impl Sync for Config[src]
impl Unpin for Config[src]
impl UnwindSafe for Config[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,