pub struct SecurityBundle { /* private fields */ }Expand description
Bundles the security configuration a participant needs — the
access-control/crypto SecurityProfile and the security-event
LoggingPlugin — behind one builder, ready to hand to a runtime config.
Build it with SecurityBundle::builder and apply it via
RuntimeConfig::with_security_bundle (in zerodds-dcps).
Implementations§
Source§impl SecurityBundle
impl SecurityBundle
Sourcepub fn builder() -> SecurityBundleBuilder
pub fn builder() -> SecurityBundleBuilder
Start building a bundle.
Sourcepub fn logging_plugin(&self) -> Option<Arc<dyn LoggingPlugin>>
pub fn logging_plugin(&self) -> Option<Arc<dyn LoggingPlugin>>
The security-event logger, if one was configured. The returned Arc
is exactly what RuntimeConfig.security_logger expects.
Sourcepub fn security_profile(&self) -> Option<Arc<SecurityProfile>>
pub fn security_profile(&self) -> Option<Arc<SecurityProfile>>
The access-control/crypto profile, if one was configured.
Sourcepub fn has_logging(&self) -> bool
pub fn has_logging(&self) -> bool
true if a security-event logger is configured.
Sourcepub fn has_profile(&self) -> bool
pub fn has_profile(&self) -> bool
true if an access-control/crypto profile is configured.
Trait Implementations§
Source§impl Clone for SecurityBundle
impl Clone for SecurityBundle
Source§fn clone(&self) -> SecurityBundle
fn clone(&self) -> SecurityBundle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for SecurityBundle
impl Default for SecurityBundle
Source§fn default() -> SecurityBundle
fn default() -> SecurityBundle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SecurityBundle
impl !UnwindSafe for SecurityBundle
impl Freeze for SecurityBundle
impl Send for SecurityBundle
impl Sync for SecurityBundle
impl Unpin for SecurityBundle
impl UnsafeUnpin for SecurityBundle
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