pub trait RandomReadBlob {
// Required method
fn read(&self, pos: u64, buf: &mut [MaybeUninit<u8>]) -> Result<usize>;
// Provided methods
fn readv(&self, offs: u64, iovecs: &mut [IoSliceMut<'_>]) -> Result<usize> { ... }
fn read_exact(&self, offs: u64, buf: &mut [MaybeUninit<u8>]) -> Result<()> { ... }
fn readv_all<'a, 'b, 'bb>(
&'a self,
offs: u64,
iovecs: &'b mut [IoSliceMut<'bb>],
) -> Result<()> { ... }
fn read_to_end(&self, offs: u64) -> Result<Vec<u8>> { ... }
}Expand description
Read-only random accessible Blob operations(synchronous).
Required Methods§
Provided Methods§
fn readv(&self, offs: u64, iovecs: &mut [IoSliceMut<'_>]) -> Result<usize>
fn read_exact(&self, offs: u64, buf: &mut [MaybeUninit<u8>]) -> Result<()>
fn readv_all<'a, 'b, 'bb>( &'a self, offs: u64, iovecs: &'b mut [IoSliceMut<'bb>], ) -> Result<()>
fn read_to_end(&self, offs: u64) -> Result<Vec<u8>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".