Struct kvproto::errorpb::Error [−][src]
Fields
message: String
not_leader: SingularPtrField<NotLeader>
region_not_found: SingularPtrField<RegionNotFound>
key_not_in_region: SingularPtrField<KeyNotInRegion>
epoch_not_match: SingularPtrField<EpochNotMatch>
server_is_busy: SingularPtrField<ServerIsBusy>
stale_command: SingularPtrField<StaleCommand>
store_not_match: SingularPtrField<StoreNotMatch>
raft_entry_too_large: SingularPtrField<RaftEntryTooLarge>
max_timestamp_not_synced: SingularPtrField<MaxTimestampNotSynced>
read_index_not_ready: SingularPtrField<ReadIndexNotReady>
proposal_in_merging_mode: SingularPtrField<ProposalInMergingMode>
data_is_not_ready: SingularPtrField<DataIsNotReady>
unknown_fields: UnknownFields
cached_size: CachedSize
Implementations
impl Error
[src]
pub fn new() -> Error
[src]
pub fn get_message(&self) -> &str
[src]
pub fn clear_message(&mut self)
[src]
pub fn set_message(&mut self, v: String)
[src]
pub fn mut_message(&mut self) -> &mut String
[src]
pub fn take_message(&mut self) -> String
[src]
pub fn get_not_leader(&self) -> &NotLeader
[src]
pub fn clear_not_leader(&mut self)
[src]
pub fn has_not_leader(&self) -> bool
[src]
pub fn set_not_leader(&mut self, v: NotLeader)
[src]
pub fn mut_not_leader(&mut self) -> &mut NotLeader
[src]
pub fn take_not_leader(&mut self) -> NotLeader
[src]
pub fn get_region_not_found(&self) -> &RegionNotFound
[src]
pub fn clear_region_not_found(&mut self)
[src]
pub fn has_region_not_found(&self) -> bool
[src]
pub fn set_region_not_found(&mut self, v: RegionNotFound)
[src]
pub fn mut_region_not_found(&mut self) -> &mut RegionNotFound
[src]
pub fn take_region_not_found(&mut self) -> RegionNotFound
[src]
pub fn get_key_not_in_region(&self) -> &KeyNotInRegion
[src]
pub fn clear_key_not_in_region(&mut self)
[src]
pub fn has_key_not_in_region(&self) -> bool
[src]
pub fn set_key_not_in_region(&mut self, v: KeyNotInRegion)
[src]
pub fn mut_key_not_in_region(&mut self) -> &mut KeyNotInRegion
[src]
pub fn take_key_not_in_region(&mut self) -> KeyNotInRegion
[src]
pub fn get_epoch_not_match(&self) -> &EpochNotMatch
[src]
pub fn clear_epoch_not_match(&mut self)
[src]
pub fn has_epoch_not_match(&self) -> bool
[src]
pub fn set_epoch_not_match(&mut self, v: EpochNotMatch)
[src]
pub fn mut_epoch_not_match(&mut self) -> &mut EpochNotMatch
[src]
pub fn take_epoch_not_match(&mut self) -> EpochNotMatch
[src]
pub fn get_server_is_busy(&self) -> &ServerIsBusy
[src]
pub fn clear_server_is_busy(&mut self)
[src]
pub fn has_server_is_busy(&self) -> bool
[src]
pub fn set_server_is_busy(&mut self, v: ServerIsBusy)
[src]
pub fn mut_server_is_busy(&mut self) -> &mut ServerIsBusy
[src]
pub fn take_server_is_busy(&mut self) -> ServerIsBusy
[src]
pub fn get_stale_command(&self) -> &StaleCommand
[src]
pub fn clear_stale_command(&mut self)
[src]
pub fn has_stale_command(&self) -> bool
[src]
pub fn set_stale_command(&mut self, v: StaleCommand)
[src]
pub fn mut_stale_command(&mut self) -> &mut StaleCommand
[src]
pub fn take_stale_command(&mut self) -> StaleCommand
[src]
pub fn get_store_not_match(&self) -> &StoreNotMatch
[src]
pub fn clear_store_not_match(&mut self)
[src]
pub fn has_store_not_match(&self) -> bool
[src]
pub fn set_store_not_match(&mut self, v: StoreNotMatch)
[src]
pub fn mut_store_not_match(&mut self) -> &mut StoreNotMatch
[src]
pub fn take_store_not_match(&mut self) -> StoreNotMatch
[src]
pub fn get_raft_entry_too_large(&self) -> &RaftEntryTooLarge
[src]
pub fn clear_raft_entry_too_large(&mut self)
[src]
pub fn has_raft_entry_too_large(&self) -> bool
[src]
pub fn set_raft_entry_too_large(&mut self, v: RaftEntryTooLarge)
[src]
pub fn mut_raft_entry_too_large(&mut self) -> &mut RaftEntryTooLarge
[src]
pub fn take_raft_entry_too_large(&mut self) -> RaftEntryTooLarge
[src]
pub fn get_max_timestamp_not_synced(&self) -> &MaxTimestampNotSynced
[src]
pub fn clear_max_timestamp_not_synced(&mut self)
[src]
pub fn has_max_timestamp_not_synced(&self) -> bool
[src]
pub fn set_max_timestamp_not_synced(&mut self, v: MaxTimestampNotSynced)
[src]
pub fn mut_max_timestamp_not_synced(&mut self) -> &mut MaxTimestampNotSynced
[src]
pub fn take_max_timestamp_not_synced(&mut self) -> MaxTimestampNotSynced
[src]
pub fn get_read_index_not_ready(&self) -> &ReadIndexNotReady
[src]
pub fn clear_read_index_not_ready(&mut self)
[src]
pub fn has_read_index_not_ready(&self) -> bool
[src]
pub fn set_read_index_not_ready(&mut self, v: ReadIndexNotReady)
[src]
pub fn mut_read_index_not_ready(&mut self) -> &mut ReadIndexNotReady
[src]
pub fn take_read_index_not_ready(&mut self) -> ReadIndexNotReady
[src]
pub fn get_proposal_in_merging_mode(&self) -> &ProposalInMergingMode
[src]
pub fn clear_proposal_in_merging_mode(&mut self)
[src]
pub fn has_proposal_in_merging_mode(&self) -> bool
[src]
pub fn set_proposal_in_merging_mode(&mut self, v: ProposalInMergingMode)
[src]
pub fn mut_proposal_in_merging_mode(&mut self) -> &mut ProposalInMergingMode
[src]
pub fn take_proposal_in_merging_mode(&mut self) -> ProposalInMergingMode
[src]
pub fn get_data_is_not_ready(&self) -> &DataIsNotReady
[src]
pub fn clear_data_is_not_ready(&mut self)
[src]
pub fn has_data_is_not_ready(&self) -> bool
[src]
pub fn set_data_is_not_ready(&mut self, v: DataIsNotReady)
[src]
pub fn mut_data_is_not_ready(&mut self) -> &mut DataIsNotReady
[src]
pub fn take_data_is_not_ready(&mut self) -> DataIsNotReady
[src]
Trait Implementations
impl Clear for Error
[src]
impl Clone for Error
[src]
impl Debug for Error
[src]
impl Default for Error
[src]
impl<'a> Default for &'a Error
[src]
impl Message for Error
[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() -> Error
[src]
fn default_instance() -> &'static Error
[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<Error> for Error
[src]
impl PbPrint for Error
[src]
impl ProtobufValue for Error
[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 Error
[src]
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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>,