pub struct AsyncRawInput<'source, S>(/* private fields */);Expand description
Ordinary asynchronous covered bytes, without buffering the whole payload.
Implementations§
Source§impl<'source, S> AsyncRawInput<'source, S>
impl<'source, S> AsyncRawInput<'source, S>
Sourcepub fn new(source: &'source mut S) -> Self
pub fn new(source: &'source mut S) -> Self
Borrows the original asynchronous source without buffering or copying.
Trait Implementations§
Source§impl<P, PE, S: AsyncSource> AsyncComputedInput<P, PE> for AsyncRawInput<'_, S>
impl<P, PE, S: AsyncSource> AsyncComputedInput<P, PE> for AsyncRawInput<'_, S>
Source§type Error = <S as AsyncSource>::Error
type Error = <S as AsyncSource>::Error
Original source/recipe cause, separate from callback refusal.
Source§async fn compute<'context: 'scope, 'reader, 'document, 'scope>(
&'scope mut self,
context: &'context ImprintContext<'reader, 'document, P, Self::Error>,
) -> Result<ImprintProof<'context>, InputFailure<Self::Error>>where
P: AsnDigest<'document, Error = PE>,
async fn compute<'context: 'scope, 'reader, 'document, 'scope>(
&'scope mut self,
context: &'context ImprintContext<'reader, 'document, P, Self::Error>,
) -> Result<ImprintProof<'context>, InputFailure<Self::Error>>where
P: AsnDigest<'document, Error = PE>,
Completes a scoped input with a proof from this exact imprint context.
Auto Trait Implementations§
impl<'source, S> !UnwindSafe for AsyncRawInput<'source, S>
impl<'source, S> Freeze for AsyncRawInput<'source, S>where
&'source mut S: Freeze,
impl<'source, S> RefUnwindSafe for AsyncRawInput<'source, S>where
&'source mut S: RefUnwindSafe,
impl<'source, S> Send for AsyncRawInput<'source, S>where
&'source mut S: Send,
impl<'source, S> Sync for AsyncRawInput<'source, S>where
&'source mut S: Sync,
impl<'source, S> Unpin for AsyncRawInput<'source, S>where
&'source mut S: Unpin,
impl<'source, S> UnsafeUnpin for AsyncRawInput<'source, S>where
&'source 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