Struct bigtable_rs::google::bigtable::v2::read_change_stream_response::CloseStream
source · pub struct CloseStream {
pub status: Option<Status>,
pub continuation_tokens: Vec<StreamContinuationToken>,
pub new_partitions: Vec<StreamPartition>,
}
Expand description
A message indicating that the client should stop reading from the stream.
If status is OK and continuation_tokens
& new_partitions
are empty, the
stream has finished (for example if there was an end_time
specified).
If continuation_tokens
& new_partitions
are present, then a change in
partitioning requires the client to open a new stream for each token to
resume reading. Example:
[B, D) ends
|
v
new_partitions: [A, C) [C, E)
continuation_tokens.partitions: [B,C) [C,D)
^—^ ^—^
^ ^
| |
| StreamContinuationToken 2
|
StreamContinuationToken 1
To read the new partition [A,C), supply the continuation tokens whose
ranges cover the new partition, for example ContinuationToken[A,B) &
ContinuationToken[B,C).
Fields§
§status: Option<Status>
The status of the stream.
continuation_tokens: Vec<StreamContinuationToken>
If non-empty, contains the information needed to resume reading their associated partitions.
new_partitions: Vec<StreamPartition>
If non-empty, contains the new partitions to start reading from, which
are related to but not necessarily identical to the partitions for the
above continuation_tokens
.
Trait Implementations§
source§impl Clone for CloseStream
impl Clone for CloseStream
source§fn clone(&self) -> CloseStream
fn clone(&self) -> CloseStream
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CloseStream
impl Debug for CloseStream
source§impl Default for CloseStream
impl Default for CloseStream
source§impl<'de> Deserialize<'de> for CloseStream
impl<'de> Deserialize<'de> for CloseStream
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Message for CloseStream
impl Message for CloseStream
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CloseStream
impl PartialEq for CloseStream
source§fn eq(&self, other: &CloseStream) -> bool
fn eq(&self, other: &CloseStream) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CloseStream
impl Serialize for CloseStream
impl StructuralPartialEq for CloseStream
Auto Trait Implementations§
impl Freeze for CloseStream
impl RefUnwindSafe for CloseStream
impl Send for CloseStream
impl Sync for CloseStream
impl Unpin for CloseStream
impl UnwindSafe for CloseStream
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
T
in a tonic::Request