Struct webrtc_dtls::crypto::Certificate
source · [−]pub struct Certificate {
pub certificate: Vec<Certificate>,
pub private_key: CryptoPrivateKey,
}
Fields
certificate: Vec<Certificate>
private_key: CryptoPrivateKey
Implementations
sourceimpl Certificate
impl Certificate
pub fn generate_self_signed(
subject_alt_names: impl Into<Vec<String>>
) -> Result<Self, Error>
pub fn generate_self_signed_with_alg(
subject_alt_names: impl Into<Vec<String>>,
alg: &'static SignatureAlgorithm
) -> Result<Self, Error>
Trait Implementations
sourceimpl Clone for Certificate
impl Clone for Certificate
sourcefn clone(&self) -> Certificate
fn clone(&self) -> Certificate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl PartialEq<Certificate> for Certificate
impl PartialEq<Certificate> for Certificate
sourcefn eq(&self, other: &Certificate) -> bool
fn eq(&self, other: &Certificate) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Certificate) -> bool
fn ne(&self, other: &Certificate) -> bool
This method tests for !=
.
impl StructuralPartialEq for Certificate
Auto Trait Implementations
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more