pub struct RpcResponsePacketRx {
pub response_request_kind: PayloadResponseKind,
pub bytes: Bytes,
}Expand description
The client-side view of an inbound RPC response, after header parsing, PoW checks, and signature verification.
By the time an RpcResponsePacketRx exists, the decoder has already proved that the
remote server really signed over the request’s pow_content_hash and that the signing
identity matches the destination the caller intended. Callers see only the
PayloadResponseKind (so they can pick the right payload deserializer) and the still-
compressed body bytes.
Paired with RpcResponsePacketTx as the decode side of the same wire format.
Fields§
§response_request_kind: PayloadResponseKind§bytes: BytesImplementations§
Auto Trait Implementations§
impl !Freeze for RpcResponsePacketRx
impl RefUnwindSafe for RpcResponsePacketRx
impl Send for RpcResponsePacketRx
impl Sync for RpcResponsePacketRx
impl Unpin for RpcResponsePacketRx
impl UnsafeUnpin for RpcResponsePacketRx
impl UnwindSafe for RpcResponsePacketRx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more