pub struct LentPayload<'a, P> { /* private fields */ }Expand description
A member payload that keeps its lending Members cursor borrowed.
This wrapper is returned by Members::next. Its private fields prevent a
payload whose concrete type does not itself borrow the archive from being
detached from the cursor lifetime.
Trait Implementations§
Source§impl<'a, P> Debug for LentPayload<'a, P>where
P: Debug,
impl<'a, P> Debug for LentPayload<'a, P>where
P: Debug,
Source§impl<P> MemberPayload for LentPayload<'_, P>where
P: MemberPayload,
impl<P> MemberPayload for LentPayload<'_, P>where
P: MemberPayload,
Source§type Error = <P as MemberPayload>::Error
type Error = <P as MemberPayload>::Error
The archive-format error returned while reading the payload.
Source§async fn next_chunk(
&mut self,
buffer: &mut Vec<u8>,
target_len: usize,
) -> Result<bool, <LentPayload<'_, P> as MemberPayload>::Error>
async fn next_chunk( &mut self, buffer: &mut Vec<u8>, target_len: usize, ) -> Result<bool, <LentPayload<'_, P> as MemberPayload>::Error>
Reads the next validated, logical payload chunk into a reusable buffer. Read more
Source§async fn skip(self) -> Result<(), <LentPayload<'_, P> as MemberPayload>::Error>
async fn skip(self) -> Result<(), <LentPayload<'_, P> as MemberPayload>::Error>
Discards and validates all remaining payload bytes.
Auto Trait Implementations§
impl<'a, P> !UnwindSafe for LentPayload<'a, P>
impl<'a, P> Freeze for LentPayload<'a, P>where
P: Freeze,
impl<'a, P> RefUnwindSafe for LentPayload<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for LentPayload<'a, P>where
P: Send,
impl<'a, P> Sync for LentPayload<'a, P>where
P: Sync,
impl<'a, P> Unpin for LentPayload<'a, P>where
P: Unpin,
impl<'a, P> UnsafeUnpin for LentPayload<'a, P>where
P: UnsafeUnpin,
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