[−][src]Struct ipp::request::IppRequestResponse
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 IppReadAdapterpub fn into_reader(self) -> IppReadAdapter
[src]
ⓘImportant traits for IppReadAdapter
Trait Implementations
impl IppRequestTrait for IppRequestResponse
[src]
Auto Trait Implementations
impl !Send for IppRequestResponse
impl !Sync for IppRequestResponse
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?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> Erased for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
U: TryFrom<T>,