Struct kvproto::kvrpcpb::Context[][src]

pub struct Context {
    pub region_id: u64,
    pub region_epoch: SingularPtrField<RegionEpoch>,
    pub peer: SingularPtrField<Peer>,
    pub term: u64,
    pub priority: CommandPri,
    pub isolation_level: IsolationLevel,
    pub not_fill_cache: bool,
    pub sync_log: bool,
    pub record_time_stat: bool,
    pub record_scan_stat: bool,
    pub replica_read: bool,
    pub resolved_locks: Vec<u64>,
    pub max_execution_duration_ms: u64,
    pub applied_index: u64,
    pub task_id: u64,
    pub stale_read: bool,
    pub resource_group_tag: Vec<u8>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

region_id: u64region_epoch: SingularPtrField<RegionEpoch>peer: SingularPtrField<Peer>term: u64priority: CommandPriisolation_level: IsolationLevelnot_fill_cache: boolsync_log: boolrecord_time_stat: boolrecord_scan_stat: boolreplica_read: boolresolved_locks: Vec<u64>max_execution_duration_ms: u64applied_index: u64task_id: u64stale_read: boolresource_group_tag: Vec<u8>unknown_fields: UnknownFieldscached_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]

impl PartialEq<Context> for Context[src]

impl PbPrint for Context[src]

impl ProtobufValue for Context[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.