pub enum SecurityBootstrap {
Disabled,
Enabled(SecurityBootstrapConfig),
}Expand description
Resolved process-wide security bootstrap state.
Variants§
Disabled
Represents the disabled case.
Enabled(SecurityBootstrapConfig)
Represents the enabled case.
Implementations§
Source§impl SecurityBootstrap
impl SecurityBootstrap
Sourcepub const fn is_enabled(&self) -> bool
pub const fn is_enabled(&self) -> bool
Returns whether enabled.
Sourcepub const fn requires_authentication(&self) -> bool
pub const fn requires_authentication(&self) -> bool
Reports whether the selected profile requires request authentication and authorization.
Sourcepub fn validate(
&self,
listener_addresses: &[SocketAddr],
) -> Result<SecurityBootstrapOutcome, SecurityProviderError>
pub fn validate( &self, listener_addresses: &[SocketAddr], ) -> Result<SecurityBootstrapOutcome, SecurityProviderError>
Validates enabled security bootstrap or records that it was intentionally disabled.
§Errors
Returns SecurityProviderError when an enabled profile is incomplete, unsafe, or unavailable.
Trait Implementations§
Source§impl Clone for SecurityBootstrap
impl Clone for SecurityBootstrap
Auto Trait Implementations§
impl Freeze for SecurityBootstrap
impl RefUnwindSafe for SecurityBootstrap
impl Send for SecurityBootstrap
impl Sync for SecurityBootstrap
impl Unpin for SecurityBootstrap
impl UnsafeUnpin for SecurityBootstrap
impl UnwindSafe for SecurityBootstrap
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