pub struct RpcRequestHeaderProto {
pub rpc_kind: Option<i32>,
pub rpc_op: Option<i32>,
pub call_id: i32,
pub client_id: Vec<u8>,
pub retry_count: Option<i32>,
pub trace_info: Option<RpcTraceInfoProto>,
pub caller_context: Option<RpcCallerContextProto>,
pub state_id: Option<i64>,
pub router_federated_state: Option<Vec<u8>>,
}
Expand description
the header for the RpcRequest
Fields§
§rpc_kind: Option<i32>
§rpc_op: Option<i32>
§call_id: i32
a sequence number that is sent back in response
client_id: Vec<u8>
Globally unique client ID
retry_count: Option<i32>
clientId + callId uniquely identifies a request retry count, 1 means this is the first retry
trace_info: Option<RpcTraceInfoProto>
tracing info
caller_context: Option<RpcCallerContextProto>
call context
state_id: Option<i64>
The last seen Global State ID
router_federated_state: Option<Vec<u8>>
Alignment context info for use with routers. The client should not interpret these bytes, but only forward bytes received from RpcResponseHeaderProto.routerFederatedState.
Implementations§
Source§impl RpcRequestHeaderProto
impl RpcRequestHeaderProto
Sourcepub fn rpc_kind(&self) -> RpcKindProto
pub fn rpc_kind(&self) -> RpcKindProto
Returns the enum value of rpc_kind
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_rpc_kind(&mut self, value: RpcKindProto)
pub fn set_rpc_kind(&mut self, value: RpcKindProto)
Sets rpc_kind
to the provided enum value.
Sourcepub fn rpc_op(&self) -> OperationProto
pub fn rpc_op(&self) -> OperationProto
Returns the enum value of rpc_op
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_rpc_op(&mut self, value: OperationProto)
pub fn set_rpc_op(&mut self, value: OperationProto)
Sets rpc_op
to the provided enum value.
Sourcepub fn retry_count(&self) -> i32
pub fn retry_count(&self) -> i32
Returns the value of retry_count
, or the default value if retry_count
is unset.
Sourcepub fn state_id(&self) -> i64
pub fn state_id(&self) -> i64
Returns the value of state_id
, or the default value if state_id
is unset.
Sourcepub fn router_federated_state(&self) -> &[u8] ⓘ
pub fn router_federated_state(&self) -> &[u8] ⓘ
Returns the value of router_federated_state
, or the default value if router_federated_state
is unset.
Trait Implementations§
Source§impl Clone for RpcRequestHeaderProto
impl Clone for RpcRequestHeaderProto
Source§fn clone(&self) -> RpcRequestHeaderProto
fn clone(&self) -> RpcRequestHeaderProto
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RpcRequestHeaderProto
impl Debug for RpcRequestHeaderProto
Source§impl Default for RpcRequestHeaderProto
impl Default for RpcRequestHeaderProto
Source§impl Message for RpcRequestHeaderProto
impl Message for RpcRequestHeaderProto
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.