Struct network::protocols::wire::messaging::v1::RpcRequest [−][src]
pub struct RpcRequest {
pub protocol_id: ProtocolId,
pub request_id: RequestId,
pub priority: Priority,
pub raw_request: Vec<u8>,
}Fields
protocol_id: ProtocolIdprotocol_id is a variant of the ProtocolId enum.
request_id: RequestIdRequestId for the RPC Request.
priority: PriorityRequest priority in the range 0..=255.
raw_request: Vec<u8>Request payload. This will be parsed by the application-level handler.
Trait Implementations
type Parameters = (<ProtocolId as Arbitrary>::Parameters, <RequestId as Arbitrary>::Parameters, <Priority as Arbitrary>::Parameters, <Vec<u8> as Arbitrary>::Parameters)
type Parameters = (<ProtocolId as Arbitrary>::Parameters, <RequestId as Arbitrary>::Parameters, <Priority as Arbitrary>::Parameters, <Vec<u8> as Arbitrary>::Parameters)
The type of parameters that arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default. Read more
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 !=.
Auto Trait Implementations
impl RefUnwindSafe for RpcRequest
impl Send for RpcRequest
impl Sync for RpcRequest
impl Unpin for RpcRequest
impl UnwindSafe for RpcRequest
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.