pub struct PeerRpcResponse {
pub ok: bool,
pub request_id: String,
pub payload: Vec<u8>,
pub error: Option<String>,
}Expand description
Response returned for a peer query or command.
Fields§
§ok: boolWhether execution succeeded.
request_id: StringRequest identity echoed by the peer.
payload: Vec<u8>Opaque application-owned response payload.
error: Option<String>Controlled failure detail.
Implementations§
Trait Implementations§
Source§impl Clone for PeerRpcResponse
impl Clone for PeerRpcResponse
Source§fn clone(&self) -> PeerRpcResponse
fn clone(&self) -> PeerRpcResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PeerRpcResponse
impl Debug for PeerRpcResponse
Source§impl<'de> Deserialize<'de> for PeerRpcResponse
impl<'de> Deserialize<'de> for PeerRpcResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PeerRpcResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PeerRpcResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PeerRpcResponse
Source§impl PartialEq for PeerRpcResponse
impl PartialEq for PeerRpcResponse
Source§impl Serialize for PeerRpcResponse
impl Serialize for PeerRpcResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PeerRpcResponse
Auto Trait Implementations§
impl Freeze for PeerRpcResponse
impl RefUnwindSafe for PeerRpcResponse
impl Send for PeerRpcResponse
impl Sync for PeerRpcResponse
impl Unpin for PeerRpcResponse
impl UnsafeUnpin for PeerRpcResponse
impl UnwindSafe for PeerRpcResponse
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