Struct kvproto::raft_cmdpb::Request [−][src]
Fields
cmd_type: CmdType
get: SingularPtrField<GetRequest>
put: SingularPtrField<PutRequest>
delete: SingularPtrField<DeleteRequest>
snap: SingularPtrField<SnapRequest>
prewrite: SingularPtrField<PrewriteRequest>
delete_range: SingularPtrField<DeleteRangeRequest>
ingest_sst: SingularPtrField<IngestSstRequest>
read_index: SingularPtrField<ReadIndexRequest>
unknown_fields: UnknownFields
cached_size: CachedSize
Implementations
impl Request
[src]
pub fn new() -> Request
[src]
pub fn get_cmd_type(&self) -> CmdType
[src]
pub fn clear_cmd_type(&mut self)
[src]
pub fn set_cmd_type(&mut self, v: CmdType)
[src]
pub fn get_get(&self) -> &GetRequest
[src]
pub fn clear_get(&mut self)
[src]
pub fn has_get(&self) -> bool
[src]
pub fn set_get(&mut self, v: GetRequest)
[src]
pub fn mut_get(&mut self) -> &mut GetRequest
[src]
pub fn take_get(&mut self) -> GetRequest
[src]
pub fn get_put(&self) -> &PutRequest
[src]
pub fn clear_put(&mut self)
[src]
pub fn has_put(&self) -> bool
[src]
pub fn set_put(&mut self, v: PutRequest)
[src]
pub fn mut_put(&mut self) -> &mut PutRequest
[src]
pub fn take_put(&mut self) -> PutRequest
[src]
pub fn get_delete(&self) -> &DeleteRequest
[src]
pub fn clear_delete(&mut self)
[src]
pub fn has_delete(&self) -> bool
[src]
pub fn set_delete(&mut self, v: DeleteRequest)
[src]
pub fn mut_delete(&mut self) -> &mut DeleteRequest
[src]
pub fn take_delete(&mut self) -> DeleteRequest
[src]
pub fn get_snap(&self) -> &SnapRequest
[src]
pub fn clear_snap(&mut self)
[src]
pub fn has_snap(&self) -> bool
[src]
pub fn set_snap(&mut self, v: SnapRequest)
[src]
pub fn mut_snap(&mut self) -> &mut SnapRequest
[src]
pub fn take_snap(&mut self) -> SnapRequest
[src]
pub fn get_prewrite(&self) -> &PrewriteRequest
[src]
pub fn clear_prewrite(&mut self)
[src]
pub fn has_prewrite(&self) -> bool
[src]
pub fn set_prewrite(&mut self, v: PrewriteRequest)
[src]
pub fn mut_prewrite(&mut self) -> &mut PrewriteRequest
[src]
pub fn take_prewrite(&mut self) -> PrewriteRequest
[src]
pub fn get_delete_range(&self) -> &DeleteRangeRequest
[src]
pub fn clear_delete_range(&mut self)
[src]
pub fn has_delete_range(&self) -> bool
[src]
pub fn set_delete_range(&mut self, v: DeleteRangeRequest)
[src]
pub fn mut_delete_range(&mut self) -> &mut DeleteRangeRequest
[src]
pub fn take_delete_range(&mut self) -> DeleteRangeRequest
[src]
pub fn get_ingest_sst(&self) -> &IngestSstRequest
[src]
pub fn clear_ingest_sst(&mut self)
[src]
pub fn has_ingest_sst(&self) -> bool
[src]
pub fn set_ingest_sst(&mut self, v: IngestSstRequest)
[src]
pub fn mut_ingest_sst(&mut self) -> &mut IngestSstRequest
[src]
pub fn take_ingest_sst(&mut self) -> IngestSstRequest
[src]
pub fn get_read_index(&self) -> &ReadIndexRequest
[src]
pub fn clear_read_index(&mut self)
[src]
pub fn has_read_index(&self) -> bool
[src]
pub fn set_read_index(&mut self, v: ReadIndexRequest)
[src]
pub fn mut_read_index(&mut self) -> &mut ReadIndexRequest
[src]
pub fn take_read_index(&mut self) -> ReadIndexRequest
[src]
Trait Implementations
impl Clear for Request
[src]
impl Clone for Request
[src]
impl Debug for Request
[src]
impl Default for Request
[src]
impl<'a> Default for &'a Request
[src]
impl Message for Request
[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() -> Request
[src]
fn default_instance() -> &'static Request
[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<Request> for Request
[src]
impl PbPrint for Request
[src]
impl ProtobufValue for Request
[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 Request
[src]
Auto Trait Implementations
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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>,