pub struct AsyncSpillFileReader { /* private fields */ }Expand description
Async reader for a spill file.
Provides buffered async reading of spill file contents.
Implementations§
Source§impl AsyncSpillFileReader
impl AsyncSpillFileReader
Sourcepub async fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>
pub async fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>
Reads exactly buf.len() bytes from the file.
§Errors
Returns an error if not enough bytes are available.
Sourcepub async fn read_u64_le(&mut self) -> Result<u64>
pub async fn read_u64_le(&mut self) -> Result<u64>
Sourcepub async fn read_i64_le(&mut self) -> Result<i64>
pub async fn read_i64_le(&mut self) -> Result<i64>
Sourcepub async fn read_f64_le(&mut self) -> Result<f64>
pub async fn read_f64_le(&mut self) -> Result<f64>
Sourcepub async fn read_bytes(&mut self) -> Result<Vec<u8>>
pub async fn read_bytes(&mut self) -> Result<Vec<u8>>
Reads a length-prefixed byte slice.
Format: [length: u64][data: bytes]
§Errors
Returns an error if the read fails.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AsyncSpillFileReader
impl !RefUnwindSafe for AsyncSpillFileReader
impl Send for AsyncSpillFileReader
impl Sync for AsyncSpillFileReader
impl Unpin for AsyncSpillFileReader
impl !UnwindSafe for AsyncSpillFileReader
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