Struct ipp::request::IppRequestResponse
source · pub struct IppRequestResponse { /* private fields */ }
Expand description
IPP request/response struct
Implementations§
source§impl IppRequestResponse
impl IppRequestResponse
sourcepub fn new(
version: IppVersion,
operation: Operation,
uri: Option<Uri>
) -> IppRequestResponse
pub fn new( version: IppVersion, operation: Operation, uri: Option<Uri> ) -> IppRequestResponse
Create new IPP request for the operation and uri
sourcepub fn new_response(
version: IppVersion,
status: StatusCode,
id: u32
) -> IppRequestResponse
pub fn new_response( version: IppVersion, status: StatusCode, id: u32 ) -> IppRequestResponse
Create response from status and id
sourcepub fn header_mut(&mut self) -> &mut IppHeader
pub fn header_mut(&mut self) -> &mut IppHeader
Get mutable IPP header
sourcepub fn attributes(&self) -> &IppAttributes
pub fn attributes(&self) -> &IppAttributes
Get attributes
sourcepub fn attributes_mut(&mut self) -> &mut IppAttributes
pub fn attributes_mut(&mut self) -> &mut IppAttributes
Get attributes
sourcepub fn payload(&self) -> &IppPayload ⓘ
pub fn payload(&self) -> &IppPayload ⓘ
Get payload
sourcepub fn payload_mut(&mut self) -> &mut IppPayload ⓘ
pub fn payload_mut(&mut self) -> &mut IppPayload ⓘ
Get mutable payload
sourcepub fn into_async_read(self) -> impl AsyncRead + Send + Sync + 'static
pub fn into_async_read(self) -> impl AsyncRead + Send + Sync + 'static
Convert request/response into AsyncRead including payload
sourcepub fn into_read(self) -> impl Read + Send + Sync + 'static
pub fn into_read(self) -> impl Read + Send + Sync + 'static
Convert request/response into Read including payload
sourcepub fn into_payload(self) -> IppPayload ⓘ
pub fn into_payload(self) -> IppPayload ⓘ
Consume request/response and return a payload
Trait Implementations§
source§impl<T: IppOperation> From<T> for IppRequestResponse
impl<T: IppOperation> From<T> for IppRequestResponse
Auto Trait Implementations§
impl !RefUnwindSafe for IppRequestResponse
impl Send for IppRequestResponse
impl Sync for IppRequestResponse
impl Unpin for IppRequestResponse
impl !UnwindSafe for IppRequestResponse
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more