pub struct SignedRequest<P>where
P: Message,{
pub request_envelope: RequestEnvelope,
pub data: P,
}
Expand description
A signed request containing both the serialized and signed payload; and the original message
Fields§
§request_envelope: RequestEnvelope
§data: P
Trait Implementations§
Source§impl<P> AsRef<P> for SignedRequest<P>where
P: Message,
impl<P> AsRef<P> for SignedRequest<P>where
P: Message,
Source§impl<P> Clone for SignedRequest<P>
impl<P> Clone for SignedRequest<P>
Source§fn clone(&self) -> SignedRequest<P>
fn clone(&self) -> SignedRequest<P>
Returns a duplicate 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<P> Default for SignedRequest<P>
impl<P> Default for SignedRequest<P>
Source§fn default() -> SignedRequest<P>
fn default() -> SignedRequest<P>
Returns the “default value” for a type. Read more
Source§impl<P> From<SignedRequest<P>> for RequestEnvelopewhere
P: Message,
impl<P> From<SignedRequest<P>> for RequestEnvelopewhere
P: Message,
Source§fn from(signed_request: SignedRequest<P>) -> RequestEnvelope
fn from(signed_request: SignedRequest<P>) -> RequestEnvelope
Converts to this type from the input type.
Auto Trait Implementations§
impl<P> Freeze for SignedRequest<P>where
P: Freeze,
impl<P> RefUnwindSafe for SignedRequest<P>where
P: RefUnwindSafe,
impl<P> Send for SignedRequest<P>
impl<P> Sync for SignedRequest<P>
impl<P> Unpin for SignedRequest<P>where
P: Unpin,
impl<P> UnwindSafe for SignedRequest<P>where
P: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request