Struct kvproto::kvrpcpb::Context [−][src]
Fields
region_id: u64
region_epoch: SingularPtrField<RegionEpoch>
peer: SingularPtrField<Peer>
term: u64
priority: CommandPri
isolation_level: IsolationLevel
not_fill_cache: bool
sync_log: bool
record_time_stat: bool
record_scan_stat: bool
replica_read: bool
resolved_locks: Vec<u64>
max_execution_duration_ms: u64
applied_index: u64
task_id: u64
stale_read: bool
resource_group_tag: Vec<u8>
unknown_fields: UnknownFields
cached_size: CachedSize
Implementations
impl Context
[src]
pub fn new() -> Context
[src]
pub fn get_region_id(&self) -> u64
[src]
pub fn clear_region_id(&mut self)
[src]
pub fn set_region_id(&mut self, v: u64)
[src]
pub fn get_region_epoch(&self) -> &RegionEpoch
[src]
pub fn clear_region_epoch(&mut self)
[src]
pub fn has_region_epoch(&self) -> bool
[src]
pub fn set_region_epoch(&mut self, v: RegionEpoch)
[src]
pub fn mut_region_epoch(&mut self) -> &mut RegionEpoch
[src]
pub fn take_region_epoch(&mut self) -> RegionEpoch
[src]
pub fn get_peer(&self) -> &Peer
[src]
pub fn clear_peer(&mut self)
[src]
pub fn has_peer(&self) -> bool
[src]
pub fn set_peer(&mut self, v: Peer)
[src]
pub fn mut_peer(&mut self) -> &mut Peer
[src]
pub fn take_peer(&mut self) -> Peer
[src]
pub fn get_term(&self) -> u64
[src]
pub fn clear_term(&mut self)
[src]
pub fn set_term(&mut self, v: u64)
[src]
pub fn get_priority(&self) -> CommandPri
[src]
pub fn clear_priority(&mut self)
[src]
pub fn set_priority(&mut self, v: CommandPri)
[src]
pub fn get_isolation_level(&self) -> IsolationLevel
[src]
pub fn clear_isolation_level(&mut self)
[src]
pub fn set_isolation_level(&mut self, v: IsolationLevel)
[src]
pub fn get_not_fill_cache(&self) -> bool
[src]
pub fn clear_not_fill_cache(&mut self)
[src]
pub fn set_not_fill_cache(&mut self, v: bool)
[src]
pub fn get_sync_log(&self) -> bool
[src]
pub fn clear_sync_log(&mut self)
[src]
pub fn set_sync_log(&mut self, v: bool)
[src]
pub fn get_record_time_stat(&self) -> bool
[src]
pub fn clear_record_time_stat(&mut self)
[src]
pub fn set_record_time_stat(&mut self, v: bool)
[src]
pub fn get_record_scan_stat(&self) -> bool
[src]
pub fn clear_record_scan_stat(&mut self)
[src]
pub fn set_record_scan_stat(&mut self, v: bool)
[src]
pub fn get_replica_read(&self) -> bool
[src]
pub fn clear_replica_read(&mut self)
[src]
pub fn set_replica_read(&mut self, v: bool)
[src]
pub fn get_resolved_locks(&self) -> &[u64]
[src]
pub fn clear_resolved_locks(&mut self)
[src]
pub fn set_resolved_locks(&mut self, v: Vec<u64>)
[src]
pub fn mut_resolved_locks(&mut self) -> &mut Vec<u64>
[src]
pub fn take_resolved_locks(&mut self) -> Vec<u64>
[src]
pub fn get_max_execution_duration_ms(&self) -> u64
[src]
pub fn clear_max_execution_duration_ms(&mut self)
[src]
pub fn set_max_execution_duration_ms(&mut self, v: u64)
[src]
pub fn get_applied_index(&self) -> u64
[src]
pub fn clear_applied_index(&mut self)
[src]
pub fn set_applied_index(&mut self, v: u64)
[src]
pub fn get_task_id(&self) -> u64
[src]
pub fn clear_task_id(&mut self)
[src]
pub fn set_task_id(&mut self, v: u64)
[src]
pub fn get_stale_read(&self) -> bool
[src]
pub fn clear_stale_read(&mut self)
[src]
pub fn set_stale_read(&mut self, v: bool)
[src]
pub fn get_resource_group_tag(&self) -> &[u8]
[src]
pub fn clear_resource_group_tag(&mut self)
[src]
pub fn set_resource_group_tag(&mut self, v: Vec<u8>)
[src]
pub fn mut_resource_group_tag(&mut self) -> &mut Vec<u8>
[src]
pub fn take_resource_group_tag(&mut self) -> Vec<u8>
[src]
Trait Implementations
impl Clear for Context
[src]
impl Clone for Context
[src]
impl Debug for Context
[src]
impl Default for Context
[src]
impl<'a> Default for &'a Context
[src]
impl Message for Context
[src]
fn is_initialized(&self) -> bool
[src]
fn merge_from(&mut self, is: &mut CodedInputStream<'_>) -> ProtobufResult<()>
[src]
fn compute_size(&self) -> u32
[src]
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
[src]
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
[src]
fn get_unknown_fields(&self) -> &UnknownFields
[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]
fn as_any(&self) -> &dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn into_any(self: Box<Self>) -> Box<dyn Any>
[src]
fn descriptor(&self) -> &'static MessageDescriptor
[src]
fn new() -> Context
[src]
fn default_instance() -> &'static Context
[src]
pub fn write_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
pub fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
pub fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
[src]
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
pub fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
[src]
pub fn check_initialized(&self) -> Result<(), ProtobufError>
[src]
pub fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
[src]
pub fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
[src]
pub fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
[src]
pub fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
[src]
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
pub fn write_length_delimited_to_bytes(
&self
) -> Result<Vec<u8, Global>, ProtobufError>
[src]
&self
) -> Result<Vec<u8, Global>, ProtobufError>
pub fn type_id(&self) -> TypeId
[src]
pub fn descriptor_static() -> &'static MessageDescriptor
[src]
impl PartialEq<Context> for Context
[src]
impl PbPrint for Context
[src]
impl ProtobufValue for Context
[src]
fn as_ref(&self) -> ProtobufValueRef<'_>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn is_non_zero(&self) -> bool
[src]
pub fn as_ref_copy(&self) -> ProtobufValueRef<'static>
[src]
impl StructuralPartialEq for Context
[src]
Auto Trait Implementations
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,