pub struct RustTlsCertificate {
pub certified: CertifiedKey,
}
Fields§
§certified: CertifiedKey
Implementations§
Source§impl RustTlsCertificate
impl RustTlsCertificate
pub fn load_from_pem_file(_path: impl AsRef<Path>) -> ServerResult<Self>
pub fn load_from_pem_data(_data: impl AsRef<[u8]>) -> ServerResult<Self>
pub fn load_from_parts<'a>( _certificates: impl Iterator<Item = &'a [u8]>, _private_keys: impl Iterator<Item = &'a [u8]>, ) -> ServerResult<Self>
pub fn localhost() -> ServerResult<Self>
Trait Implementations§
Source§impl Clone for RustTlsCertificate
impl Clone for RustTlsCertificate
Source§fn clone(&self) -> RustTlsCertificate
fn clone(&self) -> RustTlsCertificate
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 RustTlsCertificate
impl !RefUnwindSafe for RustTlsCertificate
impl Send for RustTlsCertificate
impl Sync for RustTlsCertificate
impl Unpin for RustTlsCertificate
impl !UnwindSafe for RustTlsCertificate
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