pub struct RpcResponse {
pub request_id: RequestId,
pub priority: Priority,
pub raw_response: Vec<u8>,
}
Fields§
§request_id: RequestId
RequestId for corresponding request. This is copied as is from the RpcRequest.
priority: Priority
Response priority in the range 0..=255. This will likely be same as the priority of corresponding request.
raw_response: Vec<u8>
Response payload.
Trait Implementations§
source§impl Arbitrary for RpcResponse
impl Arbitrary for RpcResponse
§type Parameters = (<u32 as Arbitrary>::Parameters, <u8 as Arbitrary>::Parameters, <Vec<u8, Global> as Arbitrary>::Parameters)
type 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<(<u32 as Arbitrary>::Strategy, <u8 as Arbitrary>::Strategy, <Vec<u8, Global> as Arbitrary>::Strategy), fn(_: (u32, u8, Vec<u8, Global>)) -> RpcResponse>
type Strategy = Map<(<u32 as Arbitrary>::Strategy, <u8 as Arbitrary>::Strategy, <Vec<u8, Global> as Arbitrary>::Strategy), fn(_: (u32, u8, Vec<u8, Global>)) -> RpcResponse>
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 RpcResponse
impl Clone for RpcResponse
source§fn clone(&self) -> RpcResponse
fn clone(&self) -> RpcResponse
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 RpcResponse
impl Debug for RpcResponse
source§impl<'de> Deserialize<'de> for RpcResponse
impl<'de> Deserialize<'de> for RpcResponse
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<RpcResponse> for RpcResponse
impl PartialEq<RpcResponse> for RpcResponse
source§fn eq(&self, other: &RpcResponse) -> bool
fn eq(&self, other: &RpcResponse) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RpcResponse
impl Serialize for RpcResponse
impl Eq for RpcResponse
impl StructuralEq for RpcResponse
impl StructuralPartialEq for RpcResponse
Auto Trait Implementations§
impl RefUnwindSafe for RpcResponse
impl Send for RpcResponse
impl Sync for RpcResponse
impl Unpin for RpcResponse
impl UnwindSafe for RpcResponse
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.