[go: up one dir, main page]

Struct rcgen::CustomExtension[][src]

pub struct CustomExtension { /* fields omitted */ }

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 RFC 8737

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 with the specified content

pub fn set_criticality(&mut self, criticality: bool)[src]

Sets the criticality flag of the extension.

pub fn criticality(&self) -> bool[src]

Obtains the criticality flag of the extension.

pub fn content(&self) -> &[u8][src]

Obtains the content of the extension.

pub fn oid_components(&self) -> impl Iterator<Item = u64> + '_[src]

Obtains the OID components of the extensions, as u64 pieces

Trait Implementations

impl Clone for CustomExtension[src]

impl Debug for CustomExtension[src]

impl Eq for CustomExtension[src]

impl Hash for CustomExtension[src]

impl PartialEq<CustomExtension> for CustomExtension[src]

impl StructuralEq for CustomExtension[src]

impl StructuralPartialEq for CustomExtension[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.