pub struct CapabilitiesBuilder(/* private fields */);Available on 32-bit or 64-bit only.
Expand description
A helper for building Capabilities
Implementations§
Source§impl CapabilitiesBuilder
impl CapabilitiesBuilder
Sourcepub fn versions(self, versions: Vec<ProtocolVersion>) -> Self
pub fn versions(self, versions: Vec<ProtocolVersion>) -> Self
Sets the versions field on the Capabilities.
Sourcepub fn ciphersuites(self, ciphersuites: Vec<Ciphersuite>) -> Self
pub fn ciphersuites(self, ciphersuites: Vec<Ciphersuite>) -> Self
Sets the ciphersuites field on the Capabilities.
Sourcepub fn extensions(self, extensions: Vec<ExtensionType>) -> Self
pub fn extensions(self, extensions: Vec<ExtensionType>) -> Self
Sets the extensions field on the Capabilities.
Sourcepub fn proposals(self, proposals: Vec<ProposalType>) -> Self
pub fn proposals(self, proposals: Vec<ProposalType>) -> Self
Sets the proposals field on the Capabilities.
Sourcepub fn credentials(self, credentials: Vec<CredentialType>) -> Self
pub fn credentials(self, credentials: Vec<CredentialType>) -> Self
Sets the credentials field on the Capabilities.
Sourcepub fn build(self) -> Capabilities
pub fn build(self) -> Capabilities
Builds the Capabilities.
Trait Implementations§
Source§impl Clone for CapabilitiesBuilder
impl Clone for CapabilitiesBuilder
Source§fn clone(&self) -> CapabilitiesBuilder
fn clone(&self) -> CapabilitiesBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CapabilitiesBuilder
impl RefUnwindSafe for CapabilitiesBuilder
impl Send for CapabilitiesBuilder
impl Sync for CapabilitiesBuilder
impl Unpin for CapabilitiesBuilder
impl UnwindSafe for CapabilitiesBuilder
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more