pub struct CurlBackend;Expand description
Network backend using external curl
Trait Implementations§
Source§impl Clone for CurlBackend
impl Clone for CurlBackend
Source§fn clone(&self) -> CurlBackend
fn clone(&self) -> CurlBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for CurlBackend
impl Default for CurlBackend
Source§fn default() -> CurlBackend
fn default() -> CurlBackend
Returns the “default value” for a type. Read more
Source§impl DownloadBackend for CurlBackend
impl DownloadBackend for CurlBackend
fn new() -> Result<Self, DownloadError>
fn download( &self, remote_path: &str, remote_len: Option<u64>, writer: &mut DownloadBackendWriter, callback: Rc<RefCell<dyn Callback>>, ) -> Result<(), DownloadError>
fn download_to_file( &self, remote_path: &str, remote_len: Option<u64>, local_path: &Path, callback: Rc<RefCell<dyn Callback>>, ) -> Result<(), DownloadError>
fn download_to_buf( &self, remote_path: &str, callback: Rc<RefCell<dyn Callback>>, ) -> Result<Vec<u8>, DownloadError>
fn file_size(&self) -> Option<usize>
Auto Trait Implementations§
impl Freeze for CurlBackend
impl RefUnwindSafe for CurlBackend
impl Send for CurlBackend
impl Sync for CurlBackend
impl Unpin for CurlBackend
impl UnsafeUnpin for CurlBackend
impl UnwindSafe for CurlBackend
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