pub struct SecurityCtx {
pub tls: Option<Arc<ServerConfig>>,
pub auth: Arc<AuthMode>,
pub acl: Arc<Acl>,
}Expand description
Resolved security config — the output of this layer.
Fields§
§tls: Option<Arc<ServerConfig>>Some(...) ⇒ TLS active; rustls ServerConfig (with or without mTLS).
auth: Arc<AuthMode>Auth mode (none/bearer/jwt/mtls/sasl).
acl: Arc<Acl>Topic ACL.
Trait Implementations§
Source§impl Clone for SecurityCtx
impl Clone for SecurityCtx
Source§fn clone(&self) -> SecurityCtx
fn clone(&self) -> SecurityCtx
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for SecurityCtx
impl !UnwindSafe for SecurityCtx
impl Freeze for SecurityCtx
impl Send for SecurityCtx
impl Sync for SecurityCtx
impl Unpin for SecurityCtx
impl UnsafeUnpin for SecurityCtx
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