pub struct Reader { /* private fields */ }Implementations§
Source§impl Reader
impl Reader
pub fn keys(&self) -> Reader<u64>
pub fn table_names(&self) -> &[String]
Sourcepub async fn close(self) -> Result<()>
pub async fn close(self) -> Result<()>
Use to close the underlying file handles explicitly.
Can be useful in a situation that opens/closes readers rapidly.
§Panic
Panics if there is an active iterator or any other read operation on this reader
pub async fn iter(&self, params: IterParams<'_>) -> Result<Option<Iter>>
pub async fn read_many<V, S>( &self, table: &str, key: u64, iovs: S, concurrency: usize, buffer_limit: MergedBufferLimit, read_amp_limit: ReadAmplificationLimit, ) -> Result<Option<impl Stream<Item = Result<ReadResult>>>>
pub async fn read(&self, table: &str, key: u64) -> Result<Option<ReadResult>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reader
impl !RefUnwindSafe for Reader
impl !Send for Reader
impl !Sync for Reader
impl Unpin for Reader
impl !UnwindSafe for Reader
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