Struct kvproto::kvrpcpb::TxnHeartBeatRequest[][src]

pub struct TxnHeartBeatRequest {
    pub context: SingularPtrField<Context>,
    pub primary_lock: Vec<u8>,
    pub start_version: u64,
    pub advise_lock_ttl: u64,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

context: SingularPtrField<Context>primary_lock: Vec<u8>start_version: u64advise_lock_ttl: u64unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl TxnHeartBeatRequest[src]

pub fn new() -> TxnHeartBeatRequest[src]

pub fn get_context(&self) -> &Context[src]

pub fn clear_context(&mut self)[src]

pub fn has_context(&self) -> bool[src]

pub fn set_context(&mut self, v: Context)[src]

pub fn mut_context(&mut self) -> &mut Context[src]

pub fn take_context(&mut self) -> Context[src]

pub fn get_primary_lock(&self) -> &[u8][src]

pub fn clear_primary_lock(&mut self)[src]

pub fn set_primary_lock(&mut self, v: Vec<u8>)[src]

pub fn mut_primary_lock(&mut self) -> &mut Vec<u8>[src]

pub fn take_primary_lock(&mut self) -> Vec<u8>[src]

pub fn get_start_version(&self) -> u64[src]

pub fn clear_start_version(&mut self)[src]

pub fn set_start_version(&mut self, v: u64)[src]

pub fn get_advise_lock_ttl(&self) -> u64[src]

pub fn clear_advise_lock_ttl(&mut self)[src]

pub fn set_advise_lock_ttl(&mut self, v: u64)[src]

Trait Implementations

impl Clear for TxnHeartBeatRequest[src]

impl Clone for TxnHeartBeatRequest[src]

impl Debug for TxnHeartBeatRequest[src]

impl Default for TxnHeartBeatRequest[src]

impl<'a> Default for &'a TxnHeartBeatRequest[src]

impl Message for TxnHeartBeatRequest[src]

impl PartialEq<TxnHeartBeatRequest> for TxnHeartBeatRequest[src]

impl PbPrint for TxnHeartBeatRequest[src]

impl ProtobufValue for TxnHeartBeatRequest[src]

impl StructuralPartialEq for TxnHeartBeatRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for TxnHeartBeatRequest

impl Send for TxnHeartBeatRequest

impl Sync for TxnHeartBeatRequest

impl Unpin for TxnHeartBeatRequest

impl UnwindSafe for TxnHeartBeatRequest

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.