pub struct X509Client<X: X509Iterator> { /* private fields */ }
Expand description
X509 Transport and Deserialize client
Implementations§
Source§impl<X: X509Iterator> X509Client<X>
impl<X: X509Iterator> X509Client<X>
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>
impl<X: X509Iterator> Default for X509Client<X>
Auto Trait Implementations§
impl<X> Freeze for X509Client<X>
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