pub struct ClientCredentials { /* private fields */ }Expand description
gRPC client credentials builder for mTLS.
Implementations§
Source§impl ClientCredentials
impl ClientCredentials
Sourcepub fn new(validator: ConnectionValidator) -> Self
pub fn new(validator: ConnectionValidator) -> Self
Creates a new ClientCredentials with the given connection validator.
Sourcepub fn validator(&self) -> &Arc<ConnectionValidator>
pub fn validator(&self) -> &Arc<ConnectionValidator>
Returns a reference to the connection validator.
Auto Trait Implementations§
impl Freeze for ClientCredentials
impl !RefUnwindSafe for ClientCredentials
impl Send for ClientCredentials
impl Sync for ClientCredentials
impl Unpin for ClientCredentials
impl !UnwindSafe for ClientCredentials
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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