pub struct IppReader<R> { /* private fields */ }Expand description
Synchronous IPP reader containing a set of methods to read from an IPP data stream
Implementations§
Source§impl<R> IppReader<R>
impl<R> IppReader<R>
Sourcepub fn read_name(&mut self) -> Result<IppName, IppParseError>
pub fn read_name(&mut self) -> Result<IppName, IppParseError>
Read IPP name from [len; name] element
Sourcepub fn read_value(&mut self) -> Result<Bytes>
pub fn read_value(&mut self) -> Result<Bytes>
Read IPP value from [len; value] element
Sourcepub fn read_header(&mut self) -> Result<IppHeader>
pub fn read_header(&mut self) -> Result<IppHeader>
Read IPP header
Sourcepub fn into_inner(self) -> R
pub fn into_inner(self) -> R
Release the underlying reader
Sourcepub fn into_payload(self) -> IppPayload ⓘwhere
R: 'static,
pub fn into_payload(self) -> IppPayload ⓘwhere
R: 'static,
Convert the remaining inner stream into IppPayload
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for IppReader<R>where
R: Freeze,
impl<R> RefUnwindSafe for IppReader<R>where
R: RefUnwindSafe,
impl<R> Send for IppReader<R>where
R: Send,
impl<R> Sync for IppReader<R>where
R: Sync,
impl<R> Unpin for IppReader<R>where
R: Unpin,
impl<R> UnsafeUnpin for IppReader<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for IppReader<R>where
R: UnwindSafe,
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