pub struct BrowserFileWriter {
pub file_name: String,
pub mode: FileSaveMode,
/* private fields */
}Fields§
§file_name: String§mode: FileSaveModeImplementations§
Source§impl BrowserFileWriter
impl BrowserFileWriter
pub fn write_text_chunk( &self, text: impl Into<String>, on_complete: impl Fn(FileWriteProgress) + 'static, ) -> FileRequestGuard
pub fn write_text_chunk_with_error( &self, text: impl Into<String>, on_complete: impl Fn(FileWriteProgress) + 'static, on_error: Option<impl Fn(FileErrorEventArgs) + 'static>, ) -> FileRequestGuard
pub fn write_bytes_chunk( &self, bytes: &[u8], on_complete: impl Fn(FileWriteProgress) + 'static, ) -> FileRequestGuard
pub fn write_bytes_chunk_with_error( &self, bytes: &[u8], on_complete: impl Fn(FileWriteProgress) + 'static, on_error: Option<impl Fn(FileErrorEventArgs) + 'static>, ) -> FileRequestGuard
pub fn finish( &self, on_complete: impl Fn(FileSaveResult) + 'static, ) -> FileRequestGuard
pub fn finish_with_error( &self, on_complete: impl Fn(FileSaveResult) + 'static, on_error: Option<impl Fn(FileErrorEventArgs) + 'static>, ) -> FileRequestGuard
Trait Implementations§
Source§impl Clone for BrowserFileWriter
impl Clone for BrowserFileWriter
Source§fn clone(&self) -> BrowserFileWriter
fn clone(&self) -> BrowserFileWriter
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 Debug for BrowserFileWriter
impl Debug for BrowserFileWriter
impl Eq for BrowserFileWriter
Source§impl PartialEq for BrowserFileWriter
impl PartialEq for BrowserFileWriter
impl StructuralPartialEq for BrowserFileWriter
Auto Trait Implementations§
impl Freeze for BrowserFileWriter
impl RefUnwindSafe for BrowserFileWriter
impl Send for BrowserFileWriter
impl Sync for BrowserFileWriter
impl Unpin for BrowserFileWriter
impl UnsafeUnpin for BrowserFileWriter
impl UnwindSafe for BrowserFileWriter
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