Struct rcgen::CustomExtension [−][src]
A custom extension of a certificate, as specified in RFC 5280
Implementations
impl CustomExtension
[src]
pub fn new_acme_identifier(sha_digest: &[u8]) -> Self
[src]
Creates a new acmeIdentifier extension for ACME TLS-ALPN-01 as specified in draft-ietf-acme-tls-alpn-05
Panics if the passed sha_digest
parameter doesn’t hold 32 bytes (256 bits).
pub fn from_oid_content(oid: &[u64], content: Vec<u8>) -> Self
[src]
Create a new custom extension
pub fn set_criticality(&mut self, criticality: bool)
[src]
Sets the criticality flag of the extension.
Auto Trait Implementations
impl RefUnwindSafe for CustomExtension
impl Send for CustomExtension
impl Sync for CustomExtension
impl Unpin for CustomExtension
impl UnwindSafe for CustomExtension
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,