Struct lance_io::scheduler::FileScheduler
source · pub struct FileScheduler { /* private fields */ }Expand description
A throttled file reader
Implementations§
source§impl FileScheduler
impl FileScheduler
sourcepub fn submit_request(
&self,
request: Vec<Range<u64>>
) -> impl Future<Output = Result<Vec<Bytes>>> + Send
pub fn submit_request( &self, request: Vec<Range<u64>> ) -> impl Future<Output = Result<Vec<Bytes>>> + Send
Submit a batch of I/O requests to the reader
The requests will be queued in a FIFO manner and, when all requests have been fulfilled, the returned future will be completed.
sourcepub fn submit_single(
&self,
range: Range<u64>
) -> impl Future<Output = Result<Bytes>> + Send
pub fn submit_single( &self, range: Range<u64> ) -> impl Future<Output = Result<Bytes>> + Send
Submit a single IOP to the reader
If you have multpile IOPS to perform then Self::submit_request is going
to be more efficient.
Trait Implementations§
source§impl Clone for FileScheduler
impl Clone for FileScheduler
source§fn clone(&self) -> FileScheduler
fn clone(&self) -> FileScheduler
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for FileScheduler
impl Send for FileScheduler
impl Sync for FileScheduler
impl Unpin for FileScheduler
impl !UnwindSafe for FileScheduler
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