Struct ipp::reader::AsyncIppReader
source · pub struct AsyncIppReader<R> { /* private fields */ }
Expand description
Asynchronous IPP reader contains a set of methods to read from IPP data stream
Implementations§
source§impl<R> AsyncIppReader<R>where
R: 'static + AsyncRead + Send + Sync + Unpin,
impl<R> AsyncIppReader<R>where R: 'static + AsyncRead + Send + Sync + Unpin,
sourcepub async fn read_value(&mut self) -> Result<Bytes>
pub async fn read_value(&mut self) -> Result<Bytes>
Read IPP value from [len; value] element
sourcepub async fn read_header(&mut self) -> Result<IppHeader>
pub async fn read_header(&mut self) -> Result<IppHeader>
Read IPP header
sourcepub fn into_payload(self) -> IppPayload ⓘ
pub fn into_payload(self) -> IppPayload ⓘ
Convert the remaining inner stream into IppPayload
Trait Implementations§
Auto Trait Implementations§
impl<R> RefUnwindSafe for AsyncIppReader<R>where R: RefUnwindSafe,
impl<R> Send for AsyncIppReader<R>where R: Send,
impl<R> Sync for AsyncIppReader<R>where R: Sync,
impl<R> Unpin for AsyncIppReader<R>where R: Unpin,
impl<R> UnwindSafe for AsyncIppReader<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