Struct yew::services::ReaderService [−][src]
pub struct ReaderService {}
Expand description
A reader service attached to a user context.
Implementations
impl ReaderService
[src]
impl ReaderService
[src]pub fn read_file(file: File, callback: Callback<FileData>) -> Result<ReaderTask>
[src]
pub fn read_file(file: File, callback: Callback<FileData>) -> Result<ReaderTask>
[src]Reads all bytes from a file and returns them with a callback.
pub fn read_file_by_chunks(
file: File,
callback: Callback<Option<FileChunk>>,
chunk_size: usize
) -> Result<ReaderTask>
[src]
pub fn read_file_by_chunks(
file: File,
callback: Callback<Option<FileChunk>>,
chunk_size: usize
) -> Result<ReaderTask>
[src]Reads data chunks from a file and returns them with a callback.
Trait Implementations
impl Debug for ReaderService
[src]
impl Debug for ReaderService
[src]impl Default for ReaderService
[src]
impl Default for ReaderService
[src]fn default() -> ReaderService
[src]
fn default() -> ReaderService
[src]Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ReaderService
impl Send for ReaderService
impl Sync for ReaderService
impl Unpin for ReaderService
impl UnwindSafe for ReaderService
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Any for T where
T: Any,
[src]
T: Any,