pub enum ErrorCode {
ParsingError(ParsingErrorType),
NotSupported(NotSupportedType),
}
Variants§
ParsingError(ParsingErrorType)
Failed to parse NetworkMessage when interpreting according to provided protocol version.
NotSupported(NotSupportedType)
A message was received for a protocol that is not supported over this connection.
Implementations§
Trait Implementations§
source§impl Arbitrary for ErrorCode
impl Arbitrary for ErrorCode
§type Parameters = (<ParsingErrorType as Arbitrary>::Parameters, <NotSupportedType as Arbitrary>::Parameters)
type Parameters = (<ParsingErrorType as Arbitrary>::Parameters, <NotSupportedType as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = TupleUnion<((u32, Arc<Map<<ParsingErrorType as Arbitrary>::Strategy, fn(_: ParsingErrorType) -> ErrorCode>>), (u32, Arc<Map<<NotSupportedType as Arbitrary>::Strategy, fn(_: NotSupportedType) -> ErrorCode>>))>
type Strategy = TupleUnion<((u32, Arc<Map<<ParsingErrorType as Arbitrary>::Strategy, fn(_: ParsingErrorType) -> ErrorCode>>), (u32, Arc<Map<<NotSupportedType as Arbitrary>::Strategy, fn(_: NotSupportedType) -> ErrorCode>>))>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
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
source§impl PartialEq<ErrorCode> for ErrorCode
impl PartialEq<ErrorCode> for ErrorCode
impl Eq for ErrorCode
impl StructuralEq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PersistableConfig for Twhere
T: Serialize + DeserializeOwned + ?Sized,
impl<T> PersistableConfig for Twhere T: Serialize + DeserializeOwned + ?Sized,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Serialize for Twhere
T: Serialize + ?Sized,
impl<T> Serialize for Twhere T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.