Enum network::protocols::wire::messaging::v1::ErrorCode [−][src]
pub enum ErrorCode {
ParsingError(ParsingErrorType),
NotSupported(NotSupportedType),
}Variants
ParsingError(ParsingErrorType)Failed to parse NetworkMessage when interpreting according to provided protocol version.
Tuple Fields of ParsingError
NotSupported(NotSupportedType)A message was received for a protocol that is not supported over this connection.
Tuple Fields of NotSupported
Implementations
Trait Implementations
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. Read more
type Strategy = TupleUnion<((u32, Arc<Map<<ParsingErrorType as Arbitrary>::Strategy, fn(_: ParsingErrorType) -> Self>>), (u32, Arc<Map<<NotSupportedType as Arbitrary>::Strategy, fn(_: NotSupportedType) -> Self>>))>
type Strategy = TupleUnion<((u32, Arc<Map<<ParsingErrorType as Arbitrary>::Strategy, fn(_: ParsingErrorType) -> Self>>), (u32, Arc<Map<<NotSupportedType as Arbitrary>::Strategy, fn(_: NotSupportedType) -> Self>>))>
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
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.