Struct mbedtls::x509::csr::Builder

source ·
pub struct Builder<'a> { /* private fields */ }

Implementations§

source§

impl<'a> Builder<'a>

source

pub fn new() -> Self

source§

impl<'a> Builder<'a>

source

pub fn subject(&mut self, subject: &str) -> Result<&mut Self>

source

pub fn subject_with_nul(&mut self, subject: &str) -> Result<&mut Self>

source

pub fn key(&mut self, key: &'a mut Pk) -> &mut Self

source

pub fn signature_hash(&mut self, md: MdType) -> &mut Self

source

pub fn key_usage(&mut self, usage: KeyUsage) -> Result<&mut Self>

source

pub fn extension(&mut self, oid: &[u8], val: &[u8]) -> Result<&mut Self>

source

pub fn write_der<'buf, F: Random>( &mut self, buf: &'buf mut [u8], rng: &mut F ) -> Result<Option<&'buf [u8]>>

source

pub fn write_der_vec<F: Random>(&mut self, rng: &mut F) -> Result<Vec<u8>>

source

pub fn write_pem<'buf, F: Random>( &mut self, buf: &'buf mut [u8], rng: &mut F ) -> Result<Option<&'buf [u8]>>

source

pub fn write_pem_string<F: Random>(&mut self, rng: &mut F) -> Result<String>

Trait Implementations§

source§

impl<'a> Drop for Builder<'a>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Builder<'a>

§

impl<'a> !Send for Builder<'a>

§

impl<'a> !Sync for Builder<'a>

§

impl<'a> Unpin for Builder<'a>

§

impl<'a> UnwindSafe for Builder<'a>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.