Struct bao_tree::io::fsm::ResponseDecoderStart   
source · pub struct ResponseDecoderStart<R> { /* private fields */ }Expand description
Response decoder state machine, at the start of a stream
Implementations§
source§impl<'a, R: AsyncRead + Unpin> ResponseDecoderStart<R>
 
impl<'a, R: AsyncRead + Unpin> ResponseDecoderStart<R>
sourcepub fn new(
    hash: Hash,
    ranges: RangeSet2<ChunkNum>,
    block_size: BlockSize,
    encoded: R
) -> Self
 
pub fn new( hash: Hash, ranges: RangeSet2<ChunkNum>, block_size: BlockSize, encoded: R ) -> Self
Create a new response decoder state machine, at the start of a stream where you don’t yet know the size.
Trait Implementations§
Auto Trait Implementations§
impl<R> RefUnwindSafe for ResponseDecoderStart<R>where R: RefUnwindSafe,
impl<R> Send for ResponseDecoderStart<R>where R: Send,
impl<R> Sync for ResponseDecoderStart<R>where R: Sync,
impl<R> Unpin for ResponseDecoderStart<R>where R: Unpin,
impl<R> UnwindSafe for ResponseDecoderStart<R>where R: 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