Struct etcd_client::Certificate [−][src]
pub struct Certificate { /* fields omitted */ }This is supported on crate feature
tls only.Represents a X509 certificate.
Implementations
impl Certificate[src]
impl Certificate[src]pub fn from_pem(pem: impl AsRef<[u8]>) -> Certificate[src]
Parse a PEM encoded X509 Certificate.
The provided PEM should include at least one PEM encoded certificate.
pub fn get_ref(&self) -> &[u8][src]
Get a immutable reference to underlying certificate
pub fn get_mut(&mut self) -> &mut [u8][src]
Get a mutable reference to underlying certificate
pub fn into_inner(self) -> Vec<u8, Global>[src]
Consumes self, returning the underlying certificate
Trait Implementations
impl Clone for Certificate[src]
impl Clone for Certificate[src]pub fn clone(&self) -> Certificate[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for Certificate
impl RefUnwindSafe for Certificateimpl Send for Certificate
impl Send for Certificateimpl Sync for Certificate
impl Sync for Certificateimpl Unpin for Certificate
impl Unpin for Certificateimpl UnwindSafe for Certificate
impl UnwindSafe for CertificateBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> IntoRequest<T> for T[src]
impl<T> IntoRequest<T> for T[src]pub fn into_request(self) -> Request<T>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, pub fn vzip(self) -> V
impl<T> WithSubscriber for T[src]
impl<T> WithSubscriber for T[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,