pub struct CacheListView<R> { /* private fields */ }Expand description
The list view returned by CacheClient list operations.
Mirrors etcdrs::client::ListView: either a snapshot cloned from a cached range, or the
wrapped client’s view for queries that passed through.
Implementations§
Source§impl<R> CacheListView<R>
impl<R> CacheListView<R>
Sourcepub fn header(&self) -> &ResponseHeader
pub fn header(&self) -> &ResponseHeader
The response header. For cache-served queries, its revision is the coherent revision of the range that served it.
Sourcepub fn revision(&self) -> Revision
pub fn revision(&self) -> Revision
The revision of the database this listing reads as of.
This is the same as what you would find in the response header.
Sourcepub fn into_stream(self) -> CacheListStream<R>
pub fn into_stream(self) -> CacheListStream<R>
Convert this view into a stream of records.
Trait Implementations§
Source§impl<R> ListView<R> for CacheListView<R>
impl<R> ListView<R> for CacheListView<R>
type Stream = CacheListStream<R>
fn header(&self) -> &ResponseHeader
fn into_stream(self) -> CacheListStream<R>
fn revision(&self) -> Revision
Auto Trait Implementations§
impl<R> !Freeze for CacheListView<R>
impl<R> !RefUnwindSafe for CacheListView<R>
impl<R> !UnwindSafe for CacheListView<R>
impl<R> Send for CacheListView<R>where
CacheListSource<R>: Send,
impl<R> Sync for CacheListView<R>where
CacheListSource<R>: Sync,
impl<R> Unpin for CacheListView<R>where
CacheListSource<R>: Unpin,
impl<R> UnsafeUnpin for CacheListView<R>where
CacheListSource<R>: UnsafeUnpin,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request