pub struct IppHeader {
pub version: IppVersion,
pub operation_or_status: u16,
pub request_id: u32,
}
Expand description
IPP request and response header
Fields§
§version: IppVersion
IPP protocol version
operation_or_status: u16
Operation tag for requests, status for responses
request_id: u32
ID of the request
Implementations§
source§impl IppHeader
impl IppHeader
sourcepub fn new(
version: IppVersion,
operation_or_status: u16,
request_id: u32
) -> IppHeader
pub fn new( version: IppVersion, operation_or_status: u16, request_id: u32 ) -> IppHeader
Create IPP header
sourcepub fn status_code(&self) -> StatusCode
pub fn status_code(&self) -> StatusCode
Decode and get IPP status code from the header
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for IppHeader
impl Send for IppHeader
impl Sync for IppHeader
impl Unpin for IppHeader
impl UnwindSafe for IppHeader
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