pub fn pem_certificates(&mut self, cert_data: &String)
        -> Result<&mut Self, Error>
    {
        self.cert.roots.clear();
        self.pem = None;
        self.cert.add_pem_file(&mut io::Cursor::new(cert_data.as_bytes()))
            .map_err(|()| ClientError::with_message(
                "error reading certificate"))?;
        self.pem = Some(cert_data.clone());
        Ok(self)
    }
/// Set the allowed certificate as a PEM file.
Set the allowed certificate as a PEM file.
Set the allowed certificate as a PEM file .
pub fn pem_certificates(&mut self, cert_data: &String)
        -> Result<&mut Self, Error>
    {
        self.cert.roots.clear();
        self.pem = None;
        self.cert.add_pem_file(&mut io::Cursor::new(cert_data.as_bytes()))
            .map_err(|()| ClientError::with_message(
                "error reading certificate"))?;
        self.pem = Some(cert_data.clone());
        Ok(self)
    }
pub fn pem_certificates ( & mut self , cert_data : & String ) -> Result < & mut Self , Error > { self . cert . roots . clear ( ) ; self . pem = None ; self . cert . add_pem_file ( & mut io :: Cursor :: new ( cert_data . as_bytes ( ) ) ) . map_err ( | ( ) | ClientError :: with_message ( " " ) ) ? ; self . pem = Some ( cert_data . clone ( ) ) ; Ok ( self ) }
Set the allowed certificate as a PEM file.
Set the allowed certificate as a PEM file .
&mut self
cert_data
&String