Struct xwt_web_sys::CertificateHash
source · pub struct CertificateHash {
pub algorithm: HashAlgorithm,
pub value: Vec<u8>,
}
Expand description
Hash of a server certificate which the transport can connect to.
The certificate must be an X.509v3 certificate that has a validity period of less that 2 weeks, and the current time must be within that validity period. The format of the public key in the certificate depends on the implementation, but must minimally include ECDSA with the secp256r1 (NIST P-256) named group, and must not include RSA keys. An ECSDA key is therefore an interoperable default public key format. A user agent may add further requirements; these will be listed in the browser compatibility section if known.
See https://developer.mozilla.org/en-US/docs/Web/API/WebTransport/WebTransport#servercertificatehashes.
Fields§
§algorithm: HashAlgorithm
Algorithm used to verify the hash.
value: Vec<u8>
Hash value.
Trait Implementations§
source§impl Clone for CertificateHash
impl Clone for CertificateHash
source§fn clone(&self) -> CertificateHash
fn clone(&self) -> CertificateHash
Returns a copy 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 moresource§impl Debug for CertificateHash
impl Debug for CertificateHash
source§impl Hash for CertificateHash
impl Hash for CertificateHash
source§impl PartialEq for CertificateHash
impl PartialEq for CertificateHash
source§fn eq(&self, other: &CertificateHash) -> bool
fn eq(&self, other: &CertificateHash) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CertificateHash
impl StructuralPartialEq for CertificateHash
Auto Trait Implementations§
impl Freeze for CertificateHash
impl RefUnwindSafe for CertificateHash
impl Send for CertificateHash
impl Sync for CertificateHash
impl Unpin for CertificateHash
impl UnwindSafe for CertificateHash
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