pub struct CaCertificate { /* private fields */ }
Expand description
A public CA certificate bundle file.
Implementations§
Source§impl CaCertificate
impl CaCertificate
Sourcepub fn file(ca_bundle_path: impl Into<PathBuf>) -> Self
pub fn file(ca_bundle_path: impl Into<PathBuf>) -> Self
Get a CA certificate from a path to a certificate bundle file.
The certificate file is not loaded or validated here. If the file does not exist or the format is not supported by the underlying SSL/TLS engine, an error will be returned when attempting to send a request using the offending certificate.
Trait Implementations§
Source§impl Clone for CaCertificate
impl Clone for CaCertificate
Source§fn clone(&self) -> CaCertificate
fn clone(&self) -> CaCertificate
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CaCertificate
impl RefUnwindSafe for CaCertificate
impl Send for CaCertificate
impl Sync for CaCertificate
impl Unpin for CaCertificate
impl UnwindSafe for CaCertificate
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