pub struct SecurityClient { /* private fields */ }Expand description
安全服务客户端 — Arc 包装的 SecurityServices,支持零成本克隆。
用法:client.security.acs...
Implementations§
Source§impl SecurityClient
impl SecurityClient
Sourcepub fn new(config: SecurityConfig) -> Self
pub fn new(config: SecurityConfig) -> Self
从安全配置创建客户端实例。
Methods from Deref<Target = SecurityServices>§
Sourcepub fn config(&self) -> &SecurityConfig
pub fn config(&self) -> &SecurityConfig
获取配置信息
Trait Implementations§
Source§impl Clone for SecurityClient
impl Clone for SecurityClient
Source§fn clone(&self) -> SecurityClient
fn clone(&self) -> SecurityClient
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 Debug for SecurityClient
impl Debug for SecurityClient
Auto Trait Implementations§
impl Freeze for SecurityClient
impl RefUnwindSafe for SecurityClient
impl Send for SecurityClient
impl Sync for SecurityClient
impl Unpin for SecurityClient
impl UnsafeUnpin for SecurityClient
impl UnwindSafe for SecurityClient
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