Enum network::protocols::wire::messaging::v1::NetworkMessage [−][src]
pub enum NetworkMessage {
Error(ErrorCode),
RpcRequest(RpcRequest),
RpcResponse(RpcResponse),
DirectSendMsg(DirectSendMsg),
}Expand description
Most primitive message type set on the network.
Variants
Error(ErrorCode)Tuple Fields of Error
0: ErrorCodeRpcRequest(RpcRequest)Tuple Fields of RpcRequest
0: RpcRequestRpcResponse(RpcResponse)Tuple Fields of RpcResponse
0: RpcResponseDirectSendMsg(DirectSendMsg)Tuple Fields of DirectSendMsg
Trait Implementations
type Parameters = (<ErrorCode as Arbitrary>::Parameters, <RpcRequest as Arbitrary>::Parameters, <RpcResponse as Arbitrary>::Parameters, <DirectSendMsg as Arbitrary>::Parameters)
type Parameters = (<ErrorCode as Arbitrary>::Parameters, <RpcRequest as Arbitrary>::Parameters, <RpcResponse as Arbitrary>::Parameters, <DirectSendMsg 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<<ErrorCode as Arbitrary>::Strategy, fn(_: ErrorCode) -> Self>>), (u32, Arc<Map<<RpcRequest as Arbitrary>::Strategy, fn(_: RpcRequest) -> Self>>), (u32, Arc<Map<<RpcResponse as Arbitrary>::Strategy, fn(_: RpcResponse) -> Self>>), (u32, Arc<Map<<DirectSendMsg as Arbitrary>::Strategy, fn(_: DirectSendMsg) -> Self>>))>
type Strategy = TupleUnion<((u32, Arc<Map<<ErrorCode as Arbitrary>::Strategy, fn(_: ErrorCode) -> Self>>), (u32, Arc<Map<<RpcRequest as Arbitrary>::Strategy, fn(_: RpcRequest) -> Self>>), (u32, Arc<Map<<RpcResponse as Arbitrary>::Strategy, fn(_: RpcResponse) -> Self>>), (u32, Arc<Map<<DirectSendMsg as Arbitrary>::Strategy, fn(_: DirectSendMsg) -> 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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
type Error = WriteError
type Error = WriteError
The type of value produced by the sink when an error occurs.
Attempts to prepare the Sink to receive a value. Read more
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready which returned Poll::Ready(Ok(())). Read more
Flush any remaining output from this sink. Read more
Auto Trait Implementations
impl RefUnwindSafe for NetworkMessage
impl Send for NetworkMessage
impl Sync for NetworkMessage
impl Unpin for NetworkMessage
impl UnwindSafe for NetworkMessage
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.