Struct hadoop_common::proto::hadoop::common::RpcRequestHeaderProto
source · 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>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn 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,
source§fn 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,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
.source§impl PartialEq<RpcRequestHeaderProto> for RpcRequestHeaderProto
impl PartialEq<RpcRequestHeaderProto> for RpcRequestHeaderProto
source§fn eq(&self, other: &RpcRequestHeaderProto) -> bool
fn eq(&self, other: &RpcRequestHeaderProto) -> bool
self
and other
values to be equal, and is used
by ==
.