pub struct ServerCredentials { /* private fields */ }Expand description
gRPC server credentials builder for mTLS.
Implementations§
Source§impl ServerCredentials
impl ServerCredentials
Sourcepub fn new(validator: ConnectionValidator) -> Self
pub fn new(validator: ConnectionValidator) -> Self
Creates a new ServerCredentials 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 ServerCredentials
impl !RefUnwindSafe for ServerCredentials
impl Send for ServerCredentials
impl Sync for ServerCredentials
impl Unpin for ServerCredentials
impl !UnwindSafe for ServerCredentials
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