[][src]Struct ipp::request::IppRequestResponse

pub struct IppRequestResponse { /* fields omitted */ }

IPP request/response struct

Methods

impl IppRequestResponse[src]

pub fn new(operation: Operation, uri: &str) -> IppRequestResponse[src]

Create new IPP request for the operation and uri

pub fn new_response(status: u16, id: u32) -> IppRequestResponse[src]

pub fn from_parser(parser: &mut IppParser) -> Result<IppRequestResponse>[src]

Create IppRequestResponse from the parser

pub fn header(&self) -> &IppHeader[src]

pub fn header_mut(&mut self) -> &mut IppHeader[src]

pub fn attributes(&self) -> &IppAttributeList[src]

Get attributes

pub fn payload(&self) -> &Option<Box<dyn Read>>[src]

pub fn set_payload(&mut self, payload: Box<dyn Read>)[src]

Set payload

pub fn set_attribute(&mut self, group: DelimiterTag, attribute: IppAttribute)[src]

Set attribute

pub fn write(&mut self, writer: &mut dyn Write) -> Result<usize>[src]

Serialize request into the binary stream (TCP)

Important traits for IppReadAdapter
pub fn into_reader(self) -> IppReadAdapter[src]

Trait Implementations

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for 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> Any for T where
    T: 'static + ?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> Erased for T

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

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