pub struct SecurityBundleBuilder { /* private fields */ }Expand description
Builder for SecurityBundle. Every setter is optional and chainable.
Implementations§
Source§impl SecurityBundleBuilder
impl SecurityBundleBuilder
Sourcepub fn logging_plugin(self, plugin: Box<dyn LoggingPlugin>) -> Self
pub fn logging_plugin(self, plugin: Box<dyn LoggingPlugin>) -> Self
Set the security-event logger. Accepts any boxed LoggingPlugin —
e.g. a FanOutLoggingPlugin fanning out to stderr plus an audit file.
Sourcepub fn security_profile(self, profile: SecurityProfile) -> Self
pub fn security_profile(self, profile: SecurityProfile) -> Self
Set the access-control/crypto profile, e.g. from
SecurityProfile::from_files.
Sourcepub fn build(self) -> SecurityBundle
pub fn build(self) -> SecurityBundle
Finalize the bundle.
Trait Implementations§
Source§impl Default for SecurityBundleBuilder
impl Default for SecurityBundleBuilder
Source§fn default() -> SecurityBundleBuilder
fn default() -> SecurityBundleBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SecurityBundleBuilder
impl !UnwindSafe for SecurityBundleBuilder
impl Freeze for SecurityBundleBuilder
impl Send for SecurityBundleBuilder
impl Sync for SecurityBundleBuilder
impl Unpin for SecurityBundleBuilder
impl UnsafeUnpin for SecurityBundleBuilder
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