pub struct TlsTranscriptBuilder<'a> { /* private fields */ }Expand description
Builder for TlsTranscript.
Implementations§
Source§impl<'a> TlsTranscriptBuilder<'a>
impl<'a> TlsTranscriptBuilder<'a>
Sourcepub fn version(self, version: TlsVersion) -> Self
pub fn version(self, version: TlsVersion) -> Self
Sets the TLS version.
Sourcepub fn records_sent(self, sent: Vec<Record>) -> Self
pub fn records_sent(self, sent: Vec<Record>) -> Self
Sets the sent records. First record must be client_finished record.
Sourcepub fn records_recv(self, recv: Vec<Record>) -> Self
pub fn records_recv(self, recv: Vec<Record>) -> Self
Sets the received records. First record must be the server finished record.
Sourcepub fn server_signature(self, sig: ServerSignature) -> Self
pub fn server_signature(self, sig: ServerSignature) -> Self
Sets the server signature.
Sourcepub fn server_cert_chain(self, chain: Vec<CertificateDer>) -> Self
pub fn server_cert_chain(self, chain: Vec<CertificateDer>) -> Self
Sets the server certificate chain.
Sourcepub fn certificate_binding(self, binding: CertBinding) -> Self
pub fn certificate_binding(self, binding: CertBinding) -> Self
Sets the certificate binding.
Sourcepub fn build(self) -> Result<TlsTranscript, TlsTranscriptError>
pub fn build(self) -> Result<TlsTranscript, TlsTranscriptError>
Builds a TlsTranscript.
Prefers available fields, but if missing tries to parse.
Trait Implementations§
Source§impl<'a> Debug for TlsTranscriptBuilder<'a>
impl<'a> Debug for TlsTranscriptBuilder<'a>
Source§impl<'a> Default for TlsTranscriptBuilder<'a>
impl<'a> Default for TlsTranscriptBuilder<'a>
Source§fn default() -> TlsTranscriptBuilder<'a>
fn default() -> TlsTranscriptBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for TlsTranscriptBuilder<'a>
impl<'a> RefUnwindSafe for TlsTranscriptBuilder<'a>
impl<'a> Send for TlsTranscriptBuilder<'a>
impl<'a> Sync for TlsTranscriptBuilder<'a>
impl<'a> Unpin for TlsTranscriptBuilder<'a>
impl<'a> UnsafeUnpin for TlsTranscriptBuilder<'a>
impl<'a> UnwindSafe for TlsTranscriptBuilder<'a>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more