pub struct FileWorkerProcessRequest { /* private fields */ }Implementations§
Source§impl FileWorkerProcessRequest
impl FileWorkerProcessRequest
pub fn suggested_name(self, value: impl Into<String>) -> Self
pub fn worker( self, wasm_path: impl Into<String>, entry_name: impl Into<String>, ) -> Self
pub fn save_to_picked_file(self, value: impl Into<String>) -> Self
pub fn chunk_bytes(self, value: u32) -> Self
pub fn on_chunk(self, handler: impl Fn(FileReadChunk) + 'static) -> Self
pub fn on_progress( self, handler: impl Fn(FileWorkerProcessProgress) + 'static, ) -> Self
pub fn on_complete( self, handler: impl Fn(FileWorkerProcessResult) + 'static, ) -> Self
pub fn on_error(self, handler: impl Fn(FileErrorEventArgs) + 'static) -> Self
pub fn start(self) -> Self
pub fn cancel(&self)
Trait Implementations§
Source§impl Clone for FileWorkerProcessRequest
impl Clone for FileWorkerProcessRequest
Source§fn clone(&self) -> FileWorkerProcessRequest
fn clone(&self) -> FileWorkerProcessRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FileWorkerProcessRequest
impl Default for FileWorkerProcessRequest
Source§fn default() -> FileWorkerProcessRequest
fn default() -> FileWorkerProcessRequest
Returns the “default value” for a type. Read more
Source§impl Drop for FileWorkerProcessRequest
impl Drop for FileWorkerProcessRequest
Auto Trait Implementations§
impl !RefUnwindSafe for FileWorkerProcessRequest
impl !Send for FileWorkerProcessRequest
impl !Sync for FileWorkerProcessRequest
impl !UnwindSafe for FileWorkerProcessRequest
impl Freeze for FileWorkerProcessRequest
impl Unpin for FileWorkerProcessRequest
impl UnsafeUnpin for FileWorkerProcessRequest
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