[][src]Struct ipp_client::IppClientBuilder

pub struct IppClientBuilder { /* fields omitted */ }

Builder to create IPP client

Methods

impl IppClientBuilder[src]

pub fn new(uri: &str) -> Self[src]

Create a client builder for a given URI

pub fn ca_cert<P>(self, path: P) -> Self where
    P: AsRef<Path>, 
[src]

Add CA certificate

pub fn ca_certs<I, P>(self, paths: I) -> Self where
    I: IntoIterator<Item = P>,
    P: AsRef<Path>, 
[src]

Add CA certificates

pub fn verify_hostname(self, verify: bool) -> Self[src]

Enable or disable host name verification. Default is true.

pub fn verify_certificate(self, verify: bool) -> Self[src]

Enable or disable server certificate verification. Default is true.

pub fn timeout(self, timeout: u64) -> Self[src]

Set network timeout in seconds. Default is 0 (no timeout)

pub fn build(self) -> IppClient[src]

Build the client

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err