Struct ipp::client::IppClientBuilder
source · pub struct IppClientBuilder<T> { /* private fields */ }
Expand description
Builder to create IPP client
Implementations§
source§impl<T> IppClientBuilder<T>
impl<T> IppClientBuilder<T>
sourcepub fn ignore_tls_errors(self, flag: bool) -> Self
pub fn ignore_tls_errors(self, flag: bool) -> Self
Enable or disable ignoring of TLS handshake errors. Default is false.
sourcepub fn ca_cert<D: AsRef<[u8]>>(self, data: D) -> Self
pub fn ca_cert<D: AsRef<[u8]>>(self, data: D) -> Self
Add custom root certificate in PEM or DER format.
sourcepub fn request_timeout(self, duration: Duration) -> Self
pub fn request_timeout(self, duration: Duration) -> Self
Set network request timeout. Default is no timeout.
source§impl IppClientBuilder<AsyncIppClient>
impl IppClientBuilder<AsyncIppClient>
sourcepub fn build(self) -> AsyncIppClient
pub fn build(self) -> AsyncIppClient
Build the async client
Auto Trait Implementations§
impl<T> RefUnwindSafe for IppClientBuilder<T>where T: RefUnwindSafe,
impl<T> Send for IppClientBuilder<T>where T: Send,
impl<T> Sync for IppClientBuilder<T>where T: Sync,
impl<T> Unpin for IppClientBuilder<T>where T: Unpin,
impl<T> UnwindSafe for IppClientBuilder<T>where T: UnwindSafe,
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