pub struct RpcRequest {
pub protocol_id: ProtocolId,
pub request_id: RequestId,
pub priority: Priority,
pub raw_request: Vec<u8>,
}
Fields§
§protocol_id: ProtocolId
protocol_id
is a variant of the ProtocolId enum.
request_id: RequestId
RequestId for the RPC Request.
priority: Priority
Request priority in the range 0..=255.
raw_request: Vec<u8>
Request payload. This will be parsed by the application-level handler.
Trait Implementations§
source§impl Arbitrary for RpcRequest
impl Arbitrary for RpcRequest
§type Parameters = (<ProtocolId as Arbitrary>::Parameters, <u32 as Arbitrary>::Parameters, <u8 as Arbitrary>::Parameters, <Vec<u8, Global> as Arbitrary>::Parameters)
type Parameters = (<ProtocolId as Arbitrary>::Parameters, <u32 as Arbitrary>::Parameters, <u8 as Arbitrary>::Parameters, <Vec<u8, Global> as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<(<ProtocolId as Arbitrary>::Strategy, <u32 as Arbitrary>::Strategy, <u8 as Arbitrary>::Strategy, <Vec<u8, Global> as Arbitrary>::Strategy), fn(_: (ProtocolId, u32, u8, Vec<u8, Global>)) -> RpcRequest>
type Strategy = Map<(<ProtocolId as Arbitrary>::Strategy, <u32 as Arbitrary>::Strategy, <u8 as Arbitrary>::Strategy, <Vec<u8, Global> as Arbitrary>::Strategy), fn(_: (ProtocolId, u32, u8, Vec<u8, Global>)) -> RpcRequest>
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 Clone for RpcRequest
impl Clone for RpcRequest
source§fn clone(&self) -> RpcRequest
fn clone(&self) -> RpcRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RpcRequest
impl Debug for RpcRequest
source§impl<'de> Deserialize<'de> for RpcRequest
impl<'de> Deserialize<'de> for RpcRequest
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<RpcRequest> for RpcRequest
impl PartialEq<RpcRequest> for RpcRequest
source§fn eq(&self, other: &RpcRequest) -> bool
fn eq(&self, other: &RpcRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RpcRequest
impl Serialize for RpcRequest
impl Eq for RpcRequest
impl StructuralEq for RpcRequest
impl StructuralPartialEq for RpcRequest
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§
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.