Struct x509_client::X509Client
source · pub struct X509Client<X: X509Iterator> { /* private fields */ }
Expand description
X509 Transport and Deserialize client
Implementations§
source§impl<X: X509Iterator> X509Client<X>where
X509ClientError: From<X::X509IteratorError>,
impl<X: X509Iterator> X509Client<X>where X509ClientError: From<X::X509IteratorError>,
sourcepub fn new(config: X509ClientConfiguration) -> Self
pub fn new(config: X509ClientConfiguration) -> Self
Instantiate X509 Client with supplied configuration
sourcepub async fn get(&self, url: &Url) -> X509ClientResult<X::Item>
pub async fn get(&self, url: &Url) -> X509ClientResult<X::Item>
Transfer and deserialize certificates, returning the first one or error on empty.
sourcepub async fn get_all(&self, url: &Url) -> X509ClientResult<X>
pub async fn get_all(&self, url: &Url) -> X509ClientResult<X>
Transfer and deserialize certificates, returning all. May be empty, depending on the deserialization implementation.
Trait Implementations§
source§impl<X: Clone + X509Iterator> Clone for X509Client<X>
impl<X: Clone + X509Iterator> Clone for X509Client<X>
source§fn clone(&self) -> X509Client<X>
fn clone(&self) -> X509Client<X>
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 moresource§impl<X: X509Iterator> Default for X509Client<X>where
X509ClientError: From<X::X509IteratorError>,
impl<X: X509Iterator> Default for X509Client<X>where X509ClientError: From<X::X509IteratorError>,
Auto Trait Implementations§
impl<X> !RefUnwindSafe for X509Client<X>
impl<X> Send for X509Client<X>where X: Send,
impl<X> Sync for X509Client<X>where X: Sync,
impl<X> Unpin for X509Client<X>where X: Unpin,
impl<X> !UnwindSafe for X509Client<X>
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