Struct ydb_grpc::ydb_proto::pers_queue::v1::streaming_write_server_message::InitResponse
source · [−]pub struct InitResponse {
pub last_sequence_number: i64,
pub session_id: String,
pub topic: String,
pub cluster: String,
pub partition_id: i64,
pub block_format_version: i64,
pub supported_codecs: Vec<i32>,
pub max_flush_window_size: i64,
pub max_block_size: i64,
pub connection_meta: Vec<u8>,
}Expand description
Response for handshake.
Fields
last_sequence_number: i64Last persisted message’s sequence number for this message group.
session_id: StringUnique identifier of write session. Used for debug purposes.
topic: StringPath of topic that matched for this write session. Used for debug purposes, will be the same as in Init request from client.
cluster: StringWrite session is established to this cluster. Client data will be in instance of topic in this cluster.
partition_id: i64Identifier of partition that is matched for this write session.
block_format_version: i64Block (see StreamingWriteClientMessage.WriteRequest.blocks_data) format version supported by server or configured for a topic. Client must write data only with them.
supported_codecs: Vec<i32>Client can only use compression codecs from this set to write messages to topic, session will be closed with BAD_REQUEST otherwise.
max_flush_window_size: i64Maximal flush window size choosed by server. Size of uncompressed data not sended to server must not be bigger than flush window size. In other words, this is maximal size of gap inside uncompressed data, which is not sended to server yet. will be 2048kb
max_block_size: i64How big blocks per stream could be(in uncompressed size). When block contains more than max_block_size of uncompressed data - block must be truncated. will be 512kb
connection_meta: Vec<u8>Opaque blob, used for fast reconnects.
Implementations
sourceimpl InitResponse
impl InitResponse
Trait Implementations
sourceimpl Clone for InitResponse
impl Clone for InitResponse
sourcefn clone(&self) -> InitResponse
fn clone(&self) -> InitResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for InitResponse
impl Debug for InitResponse
sourceimpl Default for InitResponse
impl Default for InitResponse
sourceimpl<'de> Deserialize<'de> for InitResponse
impl<'de> Deserialize<'de> for InitResponse
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Message for InitResponse
impl Message for InitResponse
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>
fn encode_to_vec(&self) -> Vec<u8, Global>
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self. Read more
sourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into self. Read more
sourceimpl PartialEq<InitResponse> for InitResponse
impl PartialEq<InitResponse> for InitResponse
sourcefn eq(&self, other: &InitResponse) -> bool
fn eq(&self, other: &InitResponse) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &InitResponse) -> bool
fn ne(&self, other: &InitResponse) -> bool
This method tests for !=.
sourceimpl Serialize for InitResponse
impl Serialize for InitResponse
impl StructuralPartialEq for InitResponse
Auto Trait Implementations
impl RefUnwindSafe for InitResponse
impl Send for InitResponse
impl Sync for InitResponse
impl Unpin for InitResponse
impl UnwindSafe for InitResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T in a tonic::Request
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more