Struct kvproto::kvrpcpb::PessimisticLockRequest[][src]

pub struct PessimisticLockRequest {
    pub context: SingularPtrField<Context>,
    pub mutations: RepeatedField<Mutation>,
    pub primary_lock: Vec<u8>,
    pub start_version: u64,
    pub lock_ttl: u64,
    pub for_update_ts: u64,
    pub is_first_lock: bool,
    pub wait_timeout: i64,
    pub force: bool,
    pub return_values: bool,
    pub min_commit_ts: u64,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

context: SingularPtrField<Context>mutations: RepeatedField<Mutation>primary_lock: Vec<u8>start_version: u64lock_ttl: u64for_update_ts: u64is_first_lock: boolwait_timeout: i64force: boolreturn_values: boolmin_commit_ts: u64unknown_fields: UnknownFieldscached_size: CachedSize

Implementations

impl PessimisticLockRequest[src]

pub fn new() -> PessimisticLockRequest[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_mutations(&self) -> &[Mutation][src]

pub fn clear_mutations(&mut self)[src]

pub fn set_mutations(&mut self, v: RepeatedField<Mutation>)[src]

pub fn mut_mutations(&mut self) -> &mut RepeatedField<Mutation>[src]

pub fn take_mutations(&mut self) -> RepeatedField<Mutation>[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_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_for_update_ts(&self) -> u64[src]

pub fn clear_for_update_ts(&mut self)[src]

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

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

pub fn clear_is_first_lock(&mut self)[src]

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

pub fn get_wait_timeout(&self) -> i64[src]

pub fn clear_wait_timeout(&mut self)[src]

pub fn set_wait_timeout(&mut self, v: i64)[src]

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

pub fn clear_force(&mut self)[src]

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

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

pub fn clear_return_values(&mut self)[src]

pub fn set_return_values(&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]

Trait Implementations

impl Clear for PessimisticLockRequest[src]

impl Clone for PessimisticLockRequest[src]

impl Debug for PessimisticLockRequest[src]

impl Default for PessimisticLockRequest[src]

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

impl Message for PessimisticLockRequest[src]

impl PartialEq<PessimisticLockRequest> for PessimisticLockRequest[src]

impl PbPrint for PessimisticLockRequest[src]

impl ProtobufValue for PessimisticLockRequest[src]

impl StructuralPartialEq for PessimisticLockRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for PessimisticLockRequest

impl Send for PessimisticLockRequest

impl Sync for PessimisticLockRequest

impl Unpin for PessimisticLockRequest

impl UnwindSafe for PessimisticLockRequest

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.