#[repr(i32)]pub enum ProtoWireErrorCode {
Show 13 variants
Unspecified = 0,
NotFound = 1,
NamespaceDenied = 2,
SequenceConflict = 3,
UnknownQuery = 4,
QueryTimeout = 5,
NotRunning = 6,
Lagged = 7,
InvalidInput = 8,
Backend = 9,
QueryFailed = 10,
DeployDenied = 11,
VersionPinned = 12,
}Expand description
Proto representation of WireErrorCode. Zero is invalid on decode.
Variants§
Unspecified = 0
Missing/invalid code.
NotFound = 1
NamespaceDenied = 2
SequenceConflict = 3
UnknownQuery = 4
QueryTimeout = 5
NotRunning = 6
Lagged = 7
InvalidInput = 8
Backend = 9
QueryFailed = 10
DeployDenied = 11
VersionPinned = 12
Implementations§
Source§impl ProtoWireErrorCode
impl ProtoWireErrorCode
Sourcepub fn from_i32(value: i32) -> Option<ProtoWireErrorCode>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ProtoWireErrorCode>
Use the TryFrom<i32> implementation instead
Converts an i32 to a ProtoWireErrorCode, or None if value is not a valid variant.
Trait Implementations§
Source§impl Clone for ProtoWireErrorCode
impl Clone for ProtoWireErrorCode
Source§fn clone(&self) -> ProtoWireErrorCode
fn clone(&self) -> ProtoWireErrorCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProtoWireErrorCode
Source§impl Debug for ProtoWireErrorCode
impl Debug for ProtoWireErrorCode
Source§impl Default for ProtoWireErrorCode
impl Default for ProtoWireErrorCode
Source§fn default() -> ProtoWireErrorCode
fn default() -> ProtoWireErrorCode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProtoWireErrorCode
impl<'de> Deserialize<'de> for ProtoWireErrorCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProtoWireErrorCode
Source§impl From<ProtoWireErrorCode> for i32
impl From<ProtoWireErrorCode> for i32
Source§fn from(value: ProtoWireErrorCode) -> i32
fn from(value: ProtoWireErrorCode) -> i32
Converts to this type from the input type.
Source§impl From<WireErrorCode> for ProtoWireErrorCode
impl From<WireErrorCode> for ProtoWireErrorCode
Source§fn from(value: WireErrorCode) -> Self
fn from(value: WireErrorCode) -> Self
Converts to this type from the input type.
Source§impl Hash for ProtoWireErrorCode
impl Hash for ProtoWireErrorCode
Source§impl PartialEq for ProtoWireErrorCode
impl PartialEq for ProtoWireErrorCode
Source§fn eq(&self, other: &ProtoWireErrorCode) -> bool
fn eq(&self, other: &ProtoWireErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProtoWireErrorCode
impl Serialize for ProtoWireErrorCode
impl StructuralPartialEq for ProtoWireErrorCode
Source§impl TryFrom<ProtoWireErrorCode> for WireErrorCode
impl TryFrom<ProtoWireErrorCode> for WireErrorCode
Source§impl TryFrom<i32> for ProtoWireErrorCode
impl TryFrom<i32> for ProtoWireErrorCode
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ProtoWireErrorCode, UnknownEnumValue>
fn try_from(value: i32) -> Result<ProtoWireErrorCode, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ProtoWireErrorCode
impl RefUnwindSafe for ProtoWireErrorCode
impl Send for ProtoWireErrorCode
impl Sync for ProtoWireErrorCode
impl Unpin for ProtoWireErrorCode
impl UnsafeUnpin for ProtoWireErrorCode
impl UnwindSafe for ProtoWireErrorCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more