Struct bitar::CloneOutput
source · pub struct CloneOutput<T> { /* private fields */ }
Implementations§
source§impl<T> CloneOutput<T>
impl<T> CloneOutput<T>
pub fn new(output: T, clone_index: ChunkIndex) -> Self
pub async fn feed(&mut self, verified: &VerifiedChunk) -> Result<usize>
pub fn chunks(&self) -> &ChunkIndex
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn into_inner(self) -> T
sourcepub async fn reorder_in_place(
&mut self,
output_index: ChunkIndex
) -> Result<u64>
pub async fn reorder_in_place( &mut self, output_index: ChunkIndex ) -> Result<u64>
Re-order chunks of output in place.
Auto Trait Implementations§
impl<T> Freeze for CloneOutput<T>where
T: Freeze,
impl<T> RefUnwindSafe for CloneOutput<T>where
T: RefUnwindSafe,
impl<T> Send for CloneOutput<T>where
T: Send,
impl<T> Sync for CloneOutput<T>where
T: Sync,
impl<T> Unpin for CloneOutput<T>where
T: Unpin,
impl<T> UnwindSafe for CloneOutput<T>where
T: 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