pub struct SerializedSct { /* private fields */ }
Available on crate feature
sct
only.Expand description
A byte string that contains a serialized SignedCertificateTimestamp as defined in RFC 6962 section 3.3.
Implementations§
source§impl SerializedSct
impl SerializedSct
sourcepub fn new(timestamp: SignedCertificateTimestamp) -> Result<Self, Error>
pub fn new(timestamp: SignedCertificateTimestamp) -> Result<Self, Error>
Creates a new SerializedSct from a SignedCertificateTimestamp.
Returns tls_codec Error if the given SignedCertificateTimestamp can’t be serialized.
sourcepub fn parse_timestamp(&self) -> Result<SignedCertificateTimestamp, Error>
pub fn parse_timestamp(&self) -> Result<SignedCertificateTimestamp, Error>
Parses a SignedCertificateTimestamp from a this SerializedSct.
Returns an error if a SignedCertificateTimestamp can’t be deserialized or if there are trailing bytes after a SignedCertificateTimestamp has been deserialized.
Trait Implementations§
source§impl Debug for SerializedSct
impl Debug for SerializedSct
source§impl DeserializeBytes for SerializedSct
impl DeserializeBytes for SerializedSct
source§impl PartialEq for SerializedSct
impl PartialEq for SerializedSct
source§fn eq(&self, other: &SerializedSct) -> bool
fn eq(&self, other: &SerializedSct) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SerializeBytes for &SerializedSct
impl SerializeBytes for &SerializedSct
source§impl SerializeBytes for SerializedSct
impl SerializeBytes for SerializedSct
source§impl Size for &SerializedSct
impl Size for &SerializedSct
fn tls_serialized_len(&self) -> usize
source§impl Size for SerializedSct
impl Size for SerializedSct
fn tls_serialized_len(&self) -> usize
impl StructuralPartialEq for SerializedSct
Auto Trait Implementations§
impl RefUnwindSafe for SerializedSct
impl Send for SerializedSct
impl Sync for SerializedSct
impl Unpin for SerializedSct
impl UnwindSafe for SerializedSct
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