[−][src]Struct ipp::client::IppClient
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]
T: AsRef<str>,
Create new instance of the client with a list of root CA certificates
uri
- target printer URIcertfiles
- 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]
&self,
request: IppRequestResponse
) -> Result<IppRequestResponse>
Send request and return response
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
U: TryFrom<T>,