Struct kvproto::kvrpcpb::LockInfo[][src]

pub struct LockInfo {
    pub primary_lock: Vec<u8>,
    pub lock_version: u64,
    pub key: Vec<u8>,
    pub lock_ttl: u64,
    pub txn_size: u64,
    pub lock_type: Op,
    pub lock_for_update_ts: u64,
    pub use_async_commit: bool,
    pub min_commit_ts: u64,
    pub secondaries: RepeatedField<Vec<u8>>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

primary_lock: Vec<u8>lock_version: u64key: Vec<u8>lock_ttl: u64txn_size: u64lock_type: Oplock_for_update_ts: u64use_async_commit: boolmin_commit_ts: u64secondaries: RepeatedField<Vec<u8>>unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl LockInfo[src]

pub fn new() -> LockInfo[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_lock_version(&self) -> u64[src]

pub fn clear_lock_version(&mut self)[src]

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

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

pub fn clear_key(&mut self)[src]

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

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

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

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

pub fn clear_lock_ttl(&mut self)[src]

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

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

pub fn clear_txn_size(&mut self)[src]

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

pub fn get_lock_type(&self) -> Op[src]

pub fn clear_lock_type(&mut self)[src]

pub fn set_lock_type(&mut self, v: Op)[src]

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

pub fn clear_lock_for_update_ts(&mut self)[src]

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

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

pub fn clear_use_async_commit(&mut self)[src]

pub fn set_use_async_commit(&mut self, v: bool)[src]

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

pub fn clear_min_commit_ts(&mut self)[src]

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

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

pub fn clear_secondaries(&mut self)[src]

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

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

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

Trait Implementations

impl Clear for LockInfo[src]

impl Clone for LockInfo[src]

impl Debug for LockInfo[src]

impl Default for LockInfo[src]

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

impl Message for LockInfo[src]

impl PartialEq<LockInfo> for LockInfo[src]

impl PbPrint for LockInfo[src]

impl ProtobufValue for LockInfo[src]

impl StructuralPartialEq for LockInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for LockInfo

impl Send for LockInfo

impl Sync for LockInfo

impl Unpin for LockInfo

impl UnwindSafe for LockInfo

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.