[][src]Struct ipp::client::IppClient

pub struct IppClient { /* fields omitted */ }

IPP client.

IPP client is responsible for sending requests to IPP server.

Methods

impl IppClient[src]

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

Create new instance of the client

pub fn with_root_certificates<T>(uri: &str, certfiles: &[T]) -> IppClient where
    T: AsRef<str>, 
[src]

Create new instance of the client with a list of root CA certificates

  • uri - target printer URI
  • certfiles - list of certificate file names

pub fn set_verify_hostname(&mut self, verify: bool)[src]

Enable or disable host name validation for SSL transport. By default it is enabled.

pub fn send<T: IppOperation>(&self, operation: T) -> Result<IppAttributeList>[src]

send IPP operation

pub fn send_request(
    &self,
    request: IppRequestResponse
) -> Result<IppRequestResponse>
[src]

Send request and return response

Auto Trait Implementations

impl Send for IppClient

impl Sync for IppClient

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

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

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