pub struct ZsyncAssembly { /* private fields */ }Implementations§
Source§impl ZsyncAssembly
impl ZsyncAssembly
pub fn new( control: ControlFile, output_path: &Path, ) -> Result<Self, AssemblyError>
pub fn with_base_url( control: ControlFile, output_path: &Path, base_url: Option<&str>, ) -> Result<Self, AssemblyError>
pub fn from_url( control_url: &str, output_path: &Path, ) -> Result<Self, AssemblyError>
pub fn set_range_gap_threshold(&mut self, threshold: u64)
pub fn set_progress_callback<F>(&mut self, callback: F)
pub fn progress(&self) -> (u64, u64)
pub fn is_complete(&self) -> bool
pub fn block_stats(&self) -> (usize, usize)
pub fn submit_source_file( &mut self, path: &Path, ) -> Result<usize, AssemblyError>
pub fn submit_self_referential(&mut self) -> Result<usize, AssemblyError>
pub fn download_missing_blocks(&mut self) -> Result<usize, AssemblyError>
pub fn complete(self) -> Result<(), AssemblyError>
pub fn abort(self)
Auto Trait Implementations§
impl Freeze for ZsyncAssembly
impl !RefUnwindSafe for ZsyncAssembly
impl Send for ZsyncAssembly
impl Sync for ZsyncAssembly
impl Unpin for ZsyncAssembly
impl UnsafeUnpin for ZsyncAssembly
impl !UnwindSafe for ZsyncAssembly
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