Struct grpcio::ChannelCredentialsBuilder
source · [−]pub struct ChannelCredentialsBuilder { /* private fields */ }
Expand description
ChannelCredentials
factory in order to configure the properties.
Implementations
sourceimpl ChannelCredentialsBuilder
impl ChannelCredentialsBuilder
sourcepub fn new() -> ChannelCredentialsBuilder
pub fn new() -> ChannelCredentialsBuilder
Initialize a new ChannelCredentialsBuilder
.
sourcepub fn root_cert(self, cert: Vec<u8>) -> ChannelCredentialsBuilder
pub fn root_cert(self, cert: Vec<u8>) -> ChannelCredentialsBuilder
Set the PEM encoded server root certificate to verify server’s identity.
sourcepub fn cert(
self,
cert: Vec<u8>,
private_key: Vec<u8>
) -> ChannelCredentialsBuilder
pub fn cert(
self,
cert: Vec<u8>,
private_key: Vec<u8>
) -> ChannelCredentialsBuilder
Set the PEM encoded client side certificate and key.
sourcepub fn build(self) -> ChannelCredentials
pub fn build(self) -> ChannelCredentials
Finalize the ChannelCredentialsBuilder
and build the ChannelCredentials
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ChannelCredentialsBuilder
impl Send for ChannelCredentialsBuilder
impl Sync for ChannelCredentialsBuilder
impl Unpin for ChannelCredentialsBuilder
impl UnwindSafe for ChannelCredentialsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more