pub struct Builder { /* private fields */ }
Expand description
A builder type for SchannelCred
s.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn supported_algorithms(
&mut self,
supported_algorithms: &[Algorithm],
) -> &mut Builder
pub fn supported_algorithms( &mut self, supported_algorithms: &[Algorithm], ) -> &mut Builder
Sets the algorithms supported for credentials created from this builder.
Sourcepub fn enabled_protocols(
&mut self,
enabled_protocols: &[Protocol],
) -> &mut Builder
pub fn enabled_protocols( &mut self, enabled_protocols: &[Protocol], ) -> &mut Builder
Sets the protocols enabled for credentials created from this builder.
Sourcepub fn cert(&mut self, cx: CertContext) -> &mut Builder
pub fn cert(&mut self, cx: CertContext) -> &mut Builder
Add a certificate to get passed down when the credentials are acquired.
Certificates passed here may specify a certificate that contains a private key to be used in authenticating the application. Typically, this is called once for each key exchange method supported by servers.
Clients often do not call this function and either depend on Schannel to find an appropriate certificate or create a certificate later if needed.
Sourcepub fn acquire(&self, direction: Direction) -> Result<SchannelCred>
pub fn acquire(&self, direction: Direction) -> Result<SchannelCred>
Creates a new SchannelCred
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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