pub struct BlockMatcher { /* private fields */ }Implementations§
Source§impl BlockMatcher
impl BlockMatcher
pub fn new(control: &ControlFile) -> Self
pub fn submit_blocks( &mut self, data: &[u8], block_start: usize, ) -> Result<bool, MatchError>
pub fn submit_source_data( &mut self, data: &[u8], _offset: u64, ) -> Vec<(usize, usize)>
pub fn needed_block_ranges(&self) -> Vec<(usize, usize)>
pub fn is_block_known(&self, block_id: usize) -> bool
pub fn blocks_todo(&self) -> usize
pub fn is_complete(&self) -> bool
pub fn total_blocks(&self) -> usize
Auto Trait Implementations§
impl Freeze for BlockMatcher
impl RefUnwindSafe for BlockMatcher
impl Send for BlockMatcher
impl Sync for BlockMatcher
impl Unpin for BlockMatcher
impl UnsafeUnpin for BlockMatcher
impl UnwindSafe for BlockMatcher
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