pub struct AuthConfig {
pub state_dir: PathBuf,
pub max_temporary_keys: usize,
pub max_temporary_key_ttl: Duration,
pub legacy_protocol: LegacyProtocolPolicy,
}Fields§
§state_dir: PathBuf§max_temporary_keys: usize§max_temporary_key_ttl: Duration§legacy_protocol: LegacyProtocolPolicyImplementations§
Source§impl AuthConfig
impl AuthConfig
Sourcepub fn from_env_with(overrides: AuthConfigOverrides) -> Self
pub fn from_env_with(overrides: AuthConfigOverrides) -> Self
The configuration the environment sets, except where overrides says
otherwise. An overridden variable is not read, so it neither applies nor
logs a complaint about its value. Overrides are taken as given, as the
fields of an AuthConfig literal are; a start refuses a limit outside
the range the environment accepts.
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§impl Debug for AuthConfig
impl Debug for AuthConfig
Source§impl Default for AuthConfig
impl Default for AuthConfig
Source§fn default() -> Self
fn default() -> Self
The configuration the environment sets: AuthConfig::from_env_with
with no overrides.
Auto Trait Implementations§
impl Forget for AuthConfig
impl Freeze for AuthConfig
impl Move for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfigwhere
RawVecInner: Send,
impl Sync for AuthConfigwhere
RawVecInner: Sync,
impl Unpin for AuthConfig
impl UnsafeUnpin for AuthConfig
impl UnwindSafe for AuthConfigwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more