pub struct RemoteQueryResponse { /* private fields */ }Expand description
One successful remote execution bound to its request and plan.
Implementations§
Source§impl RemoteQueryResponse
impl RemoteQueryResponse
Sourcepub fn new(
nonce: impl Into<String>,
plan: &QueryPlanFingerprint,
request: &RemoteRequestFingerprint,
outcome: RemoteOutcome,
) -> Result<Self, Diagnostic>
pub fn new( nonce: impl Into<String>, plan: &QueryPlanFingerprint, request: &RemoteRequestFingerprint, outcome: RemoteOutcome, ) -> Result<Self, Diagnostic>
Bind one outcome to the request nonce, plan, and whole request.
Sourcepub fn encode_signed(
&self,
advertisement: &RemoteCapabilitiesFingerprint,
signer: &impl RemoteReplySigner,
) -> Result<Vec<u8>, Diagnostic>
pub fn encode_signed( &self, advertisement: &RemoteCapabilitiesFingerprint, signer: &impl RemoteReplySigner, ) -> Result<Vec<u8>, Diagnostic>
Encode one authenticated outer reply using the exact trusted advertisement.
Sourcepub fn signed_encoded_len(
&self,
advertisement: &RemoteCapabilitiesFingerprint,
key: RemoteSigningPublicKey,
) -> Result<usize, Diagnostic>
pub fn signed_encoded_len( &self, advertisement: &RemoteCapabilitiesFingerprint, key: RemoteSigningPublicKey, ) -> Result<usize, Diagnostic>
Return the exact authenticated wire length without invoking a signer.
Sourcepub const fn outcome(&self) -> &RemoteOutcome
pub const fn outcome(&self) -> &RemoteOutcome
Return the typed outcome.
Sourcepub fn into_outcome(self) -> RemoteOutcome
pub fn into_outcome(self) -> RemoteOutcome
Consume the envelope and return its typed outcome.
Trait Implementations§
Source§impl Clone for RemoteQueryResponse
impl Clone for RemoteQueryResponse
Source§fn clone(&self) -> RemoteQueryResponse
fn clone(&self) -> RemoteQueryResponse
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 RemoteQueryResponse
impl Debug for RemoteQueryResponse
Source§impl<'de> Deserialize<'de> for RemoteQueryResponse
impl<'de> Deserialize<'de> for RemoteQueryResponse
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 for RemoteQueryResponse
impl PartialEq for RemoteQueryResponse
Source§impl Serialize for RemoteQueryResponse
impl Serialize for RemoteQueryResponse
impl StructuralPartialEq for RemoteQueryResponse
Auto Trait Implementations§
impl Freeze for RemoteQueryResponse
impl RefUnwindSafe for RemoteQueryResponse
impl Send for RemoteQueryResponse
impl Sync for RemoteQueryResponse
impl Unpin for RemoteQueryResponse
impl UnsafeUnpin for RemoteQueryResponse
impl UnwindSafe for RemoteQueryResponse
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