[][src]Struct ipp_proto::request::IppRequestResponse

pub struct IppRequestResponse { /* fields omitted */ }

IPP request/response struct

Methods

impl IppRequestResponse[src]

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

Create new IPP request for the operation and uri

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

Create response from status and id

pub fn from_parse_result(result: IppParseResult) -> IppRequestResponse[src]

Create IppRequestResponse from parse result

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

Get IPP header

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

Get mutable IPP header

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

Get attributes

pub fn attributes_mut(&mut self) -> &mut IppAttributes[src]

Get attributes

pub fn payload(&self) -> &Option<PayloadKind>[src]

Get payload

pub fn payload_mut(&mut self) -> &mut Option<PayloadKind>[src]

Get mutable payload

pub fn add_payload(&mut self, payload: IppJobSource)[src]

Set payload

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

Serialize request into the binary stream (TCP)

pub fn into_stream(
    self
) -> Box<dyn Stream<Item = Bytes, Error = Error> + Send + 'static>
[src]

Convert request/response into Stream

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>,