pub struct DefaultNetBackend { /* private fields */ }Expand description
Network backend
Trait Implementations§
Source§impl Clone for ReqwestBackend
impl Clone for ReqwestBackend
Source§fn clone(&self) -> ReqwestBackend
fn clone(&self) -> ReqwestBackend
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 DownloadBackend for ReqwestBackend
impl DownloadBackend for ReqwestBackend
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 ReqwestBackend
impl !RefUnwindSafe for ReqwestBackend
impl Send for ReqwestBackend
impl Sync for ReqwestBackend
impl Unpin for ReqwestBackend
impl UnsafeUnpin for ReqwestBackend
impl !UnwindSafe for ReqwestBackend
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