Struct network::protocols::wire::messaging::v1::RpcResponse [−][src]
pub struct RpcResponse {
pub request_id: RequestId,
pub priority: Priority,
pub raw_response: Vec<u8>,
}Fields
request_id: RequestIdRequestId for corresponding request. This is copied as is from the RpcRequest.
priority: PriorityResponse 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
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 RpcResponse
impl Send for RpcResponse
impl Sync for RpcResponse
impl Unpin for RpcResponse
impl UnwindSafe for RpcResponse
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.