Struct boring::x509::store::X509StoreBuilder
source · #[repr(transparent)]pub struct X509StoreBuilder(/* private fields */);
Expand description
A builder type used to construct an X509Store
.
Implementations§
source§impl X509StoreBuilder
impl X509StoreBuilder
sourcepub fn new() -> Result<X509StoreBuilder, ErrorStack>
pub fn new() -> Result<X509StoreBuilder, ErrorStack>
Returns a builder for a certificate store.
The store is initially empty.
Methods from Deref<Target = X509StoreBuilderRef>§
sourcepub fn add_cert(&mut self, cert: X509) -> Result<(), ErrorStack>
pub fn add_cert(&mut self, cert: X509) -> Result<(), ErrorStack>
Adds a certificate to the certificate store.
sourcepub fn set_default_paths(&mut self) -> Result<(), ErrorStack>
pub fn set_default_paths(&mut self) -> Result<(), ErrorStack>
Load certificates from their default locations.
These locations are read from the SSL_CERT_FILE
and SSL_CERT_DIR
environment variables if present, or defaults specified at OpenSSL
build time otherwise.
Trait Implementations§
source§impl AsMut<X509StoreBuilderRef> for X509StoreBuilder
impl AsMut<X509StoreBuilderRef> for X509StoreBuilder
source§fn as_mut(&mut self) -> &mut X509StoreBuilderRef
fn as_mut(&mut self) -> &mut X509StoreBuilderRef
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<X509StoreBuilderRef> for X509StoreBuilder
impl AsRef<X509StoreBuilderRef> for X509StoreBuilder
source§fn as_ref(&self) -> &X509StoreBuilderRef
fn as_ref(&self) -> &X509StoreBuilderRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<X509StoreBuilderRef> for X509StoreBuilder
impl Borrow<X509StoreBuilderRef> for X509StoreBuilder
source§fn borrow(&self) -> &X509StoreBuilderRef
fn borrow(&self) -> &X509StoreBuilderRef
Immutably borrows from an owned value. Read more
source§impl BorrowMut<X509StoreBuilderRef> for X509StoreBuilder
impl BorrowMut<X509StoreBuilderRef> for X509StoreBuilder
source§fn borrow_mut(&mut self) -> &mut X509StoreBuilderRef
fn borrow_mut(&mut self) -> &mut X509StoreBuilderRef
Mutably borrows from an owned value. Read more
source§impl Deref for X509StoreBuilder
impl Deref for X509StoreBuilder
§type Target = X509StoreBuilderRef
type Target = X509StoreBuilderRef
The resulting type after dereferencing.
source§fn deref(&self) -> &X509StoreBuilderRef
fn deref(&self) -> &X509StoreBuilderRef
Dereferences the value.
source§impl DerefMut for X509StoreBuilder
impl DerefMut for X509StoreBuilder
source§fn deref_mut(&mut self) -> &mut X509StoreBuilderRef
fn deref_mut(&mut self) -> &mut X509StoreBuilderRef
Mutably dereferences the value.
source§impl Drop for X509StoreBuilder
impl Drop for X509StoreBuilder
source§impl ForeignType for X509StoreBuilder
impl ForeignType for X509StoreBuilder
§type CType = x509_store_st
type CType = x509_store_st
The raw C type.
§type Ref = X509StoreBuilderRef
type Ref = X509StoreBuilderRef
The type representing a reference to this type.
source§unsafe fn from_ptr(ptr: *mut X509_STORE) -> X509StoreBuilder
unsafe fn from_ptr(ptr: *mut X509_STORE) -> X509StoreBuilder
Constructs an instance of this type from its raw type. Read more
source§fn as_ptr(&self) -> *mut X509_STORE
fn as_ptr(&self) -> *mut X509_STORE
Returns a raw pointer to the wrapped value.
impl Send for X509StoreBuilder
impl Sync for X509StoreBuilder
Auto Trait Implementations§
impl RefUnwindSafe for X509StoreBuilder
impl Unpin for X509StoreBuilder
impl UnwindSafe for X509StoreBuilder
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