pub struct HttpWasmFetcher { /* private fields */ }Expand description
Native pure-std HTTP (http://) and local filesystem (file://) WASM fetcher with timeout and progress streaming.
Implementations§
Source§impl HttpWasmFetcher
impl HttpWasmFetcher
pub fn get_timeout_ms(&self) -> u64
pub fn get_mut_timeout_ms(&mut self) -> &mut u64
pub fn set_timeout_ms(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for HttpWasmFetcher
impl Clone for HttpWasmFetcher
impl Copy for HttpWasmFetcher
Source§impl Debug for HttpWasmFetcher
impl Debug for HttpWasmFetcher
Source§impl Default for HttpWasmFetcher
impl Default for HttpWasmFetcher
impl Eq for HttpWasmFetcher
Source§impl Hash for HttpWasmFetcher
impl Hash for HttpWasmFetcher
Source§impl PartialEq for HttpWasmFetcher
impl PartialEq for HttpWasmFetcher
impl StructuralPartialEq for HttpWasmFetcher
Source§impl WasmFetcher for HttpWasmFetcher
Pure-std http:// and file:// transport implementation for HttpWasmFetcher.
impl WasmFetcher for HttpWasmFetcher
Pure-std http:// and file:// transport implementation for HttpWasmFetcher.
Source§fn fetch(
&self,
request: &WasmDownloadRequest,
_attempt: u32,
on_progress: &mut dyn FnMut(u64, u64),
) -> Result<WasmFetchedPayload, WasmDynamicError>
fn fetch( &self, request: &WasmDownloadRequest, _attempt: u32, on_progress: &mut dyn FnMut(u64, u64), ) -> Result<WasmFetchedPayload, WasmDynamicError>
Downloads a .wasm binary over real TCP HTTP or local file:// path with socket timeout and progress streaming.
§Arguments
&Self- HTTP fetcher reference.&WasmDownloadRequest- Target download descriptor.u32- Retry attempt counter.&mut dyn FnMut(u64, u64)- Byte progress callback.
§Returns
Result<WasmFetchedPayload, WasmDynamicError>- Downloaded bytes or typed transport error.
Auto Trait Implementations§
impl Forget for HttpWasmFetcher
impl Freeze for HttpWasmFetcher
impl Move for HttpWasmFetcher
impl RefUnwindSafe for HttpWasmFetcher
impl Send for HttpWasmFetcher
impl Sync for HttpWasmFetcher
impl Unpin for HttpWasmFetcher
impl UnsafeUnpin for HttpWasmFetcher
impl UnwindSafe for HttpWasmFetcher
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