pub struct AsyncStreams<'s, S>(pub &'s mut [S]);Expand description
A borrowed group of literal asynchronous object streams, without allocation.
Tuple Fields§
§0: &'s mut [S]Trait Implementations§
Source§impl<'p, P: Digest<'p>, S: AsyncSource> AsyncObjects<'p, P> for AsyncStreams<'_, S>
impl<'p, P: Digest<'p>, S: AsyncSource> AsyncObjects<'p, P> for AsyncStreams<'_, S>
Source§type Error = <S as AsyncSource>::Error
type Error = <S as AsyncSource>::Error
Original acquisition or format-specific comparison failure.
Source§async fn run<W: Work>(
&mut self,
index: usize,
batch: DigestBatch<'p, P>,
work: &W,
) -> PassResult<DigestMemo<'p, P>, Self::Error, P::Error>
async fn run<W: Work>( &mut self, index: usize, batch: DigestBatch<'p, P>, work: &W, ) -> PassResult<DigestMemo<'p, P>, Self::Error, P::Error>
Completes this batch for the original object at
index. The supplied
work applies to acquisition, validation and the batch’s own callbacks.Auto Trait Implementations§
impl<'s, S> !UnwindSafe for AsyncStreams<'s, S>
impl<'s, S> Freeze for AsyncStreams<'s, S>
impl<'s, S> RefUnwindSafe for AsyncStreams<'s, S>where
&'s mut [S]: RefUnwindSafe,
impl<'s, S> Send for AsyncStreams<'s, S>
impl<'s, S> Sync for AsyncStreams<'s, S>
impl<'s, S> Unpin for AsyncStreams<'s, S>
impl<'s, S> UnsafeUnpin for AsyncStreams<'s, S>where
&'s mut [S]: 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