pub struct BrowserFile { /* private fields */ }Implementations§
Source§impl BrowserFile
impl BrowserFile
pub fn id(&self) -> String
pub fn name(&self) -> String
pub fn mime_type(&self) -> Option<String>
pub fn size_bytes(&self) -> u64
pub fn last_modified_ms(&self) -> u64
pub fn read_bytes_chunk( &self, offset_bytes: u64, max_bytes: u32, on_complete: impl Fn(FileReadChunk) + 'static, ) -> FileRequestGuard
pub fn read_bytes_chunk_with_error( &self, offset_bytes: u64, max_bytes: u32, on_complete: impl Fn(FileReadChunk) + 'static, on_error: Option<impl Fn(FileErrorEventArgs) + 'static>, ) -> FileRequestGuard
Trait Implementations§
Source§impl Clone for BrowserFile
impl Clone for BrowserFile
Source§fn clone(&self) -> BrowserFile
fn clone(&self) -> BrowserFile
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 BrowserFile
impl Debug for BrowserFile
Source§impl Default for BrowserFile
impl Default for BrowserFile
impl Eq for BrowserFile
Auto Trait Implementations§
impl !RefUnwindSafe for BrowserFile
impl !Send for BrowserFile
impl !Sync for BrowserFile
impl !UnwindSafe for BrowserFile
impl Freeze for BrowserFile
impl Unpin for BrowserFile
impl UnsafeUnpin for BrowserFile
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