Skip to main content

AsyncStreams

Struct AsyncStreams 

Source
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>

Source§

type Error = <S as AsyncSource>::Error

Original acquisition or format-specific comparison failure.
Source§

fn len(&self) -> usize

Number of original objects, including repeated group occurrences.
Source§

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.
Source§

fn is_empty(&self) -> bool

Whether the supplied group has no objects.

Auto Trait Implementations§

§

impl<'s, S> !UnwindSafe for AsyncStreams<'s, S>

§

impl<'s, S> Freeze for AsyncStreams<'s, S>
where &'s mut [S]: Freeze,

§

impl<'s, S> RefUnwindSafe for AsyncStreams<'s, S>
where &'s mut [S]: RefUnwindSafe,

§

impl<'s, S> Send for AsyncStreams<'s, S>
where &'s mut [S]: Send,

§

impl<'s, S> Sync for AsyncStreams<'s, S>
where &'s mut [S]: Sync,

§

impl<'s, S> Unpin for AsyncStreams<'s, S>
where &'s mut [S]: Unpin,

§

impl<'s, S> UnsafeUnpin for AsyncStreams<'s, S>
where &'s mut [S]: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.