pub struct ReaderService {}
Expand description
A reader service attached to a user context.
Implementations§
Source§impl ReaderService
impl ReaderService
Sourcepub fn read_file(
file: File,
callback: Callback<FileData>,
) -> Result<ReaderTask, &'static str>
pub fn read_file( file: File, callback: Callback<FileData>, ) -> Result<ReaderTask, &'static str>
Reads all bytes from a file and returns them with a callback.
Sourcepub fn read_file_by_chunks(
file: File,
callback: Callback<Option<FileChunk>>,
chunk_size: usize,
) -> Result<ReaderTask, &'static str>
pub fn read_file_by_chunks( file: File, callback: Callback<Option<FileChunk>>, chunk_size: usize, ) -> Result<ReaderTask, &'static str>
Reads data chunks from a file and returns them with a callback.
Trait Implementations§
Source§impl Debug for ReaderService
impl Debug for ReaderService
Source§impl Default for ReaderService
impl Default for ReaderService
Source§fn default() -> ReaderService
fn default() -> ReaderService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReaderService
impl RefUnwindSafe for ReaderService
impl Send for ReaderService
impl Sync for ReaderService
impl Unpin for ReaderService
impl UnwindSafe for ReaderService
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
Source§impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
impl<T, V> IntoOptPropValue<V> for Twhere
T: IntoPropValue<Option<V>>,
Source§fn into_opt_prop_value(self) -> Option<V>
fn into_opt_prop_value(self) -> Option<V>
Convert
self
to an optional value of a Properties
struct.Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.