pub struct AsyncDecoder<T: AsyncRead + Unpin, O: AsyncRead + Unpin>(/* private fields */);Expand description
Async compatible version of Decoder.
Implementations§
Source§impl<T: AsyncRead + Unpin> AsyncDecoder<T, T>
impl<T: AsyncRead + Unpin> AsyncDecoder<T, T>
Source§impl<T: AsyncRead + Unpin, O: AsyncRead + Unpin> AsyncDecoder<T, O>
impl<T: AsyncRead + Unpin, O: AsyncRead + Unpin> AsyncDecoder<T, O>
Sourcepub fn new_outboard(inner: T, outboard: O, hash: &Hash) -> Self
pub fn new_outboard(inner: T, outboard: O, hash: &Hash) -> Self
Create a new async decoder from an underlying async reader and an async outboard reader.
Trait Implementations§
Auto Trait Implementations§
impl<T, O> Freeze for AsyncDecoder<T, O>
impl<T, O> RefUnwindSafe for AsyncDecoder<T, O>where
T: RefUnwindSafe,
O: RefUnwindSafe,
impl<T, O> Send for AsyncDecoder<T, O>
impl<T, O> Sync for AsyncDecoder<T, O>
impl<T, O> Unpin for AsyncDecoder<T, O>
impl<T, O> UnwindSafe for AsyncDecoder<T, O>where
T: UnwindSafe,
O: 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