Skip to main content

ExchangeRecord

Struct ExchangeRecord 

Source
pub struct ExchangeRecord<'a, Req, Res> { /* private fields */ }

Trait Implementations§

Source§

impl<'a, Req: Debug, Res: Debug> Debug for ExchangeRecord<'a, Req, Res>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Req, Res> ExchangeRecordSign<Res> for ExchangeRecord<'_, Req, Res>
where Req: Body + Send + Sync, Req::Data: Send, Res: Body + Send + Sync, Res::Data: Send,

Source§

async fn sign<S: SignerKey>( self, key: &S, label: &str, params: &SignatureParams, ) -> Result<Self, SignError>

Source§

async fn verify_sign<V: VerifierKey>( self, key: &V, label: &str, ) -> Result<Self, VerificationError>

Source§

impl<Req, Res> From<ExchangeRecord<'_, Req, Res>> for Response<Res>

Source§

fn from(value: ExchangeRecord<'_, Req, Res>) -> Self

Converts to this type from the input type.
Source§

impl<Req, Res> ToComponent for ExchangeRecord<'_, Req, Res>

Auto Trait Implementations§

§

impl<'a, Req, Res> Freeze for ExchangeRecord<'a, Req, Res>
where Res: Freeze,

§

impl<'a, Req, Res> !RefUnwindSafe for ExchangeRecord<'a, Req, Res>

§

impl<'a, Req, Res> Send for ExchangeRecord<'a, Req, Res>
where Res: Send, Req: Sync,

§

impl<'a, Req, Res> Sync for ExchangeRecord<'a, Req, Res>
where Res: Sync, Req: Sync,

§

impl<'a, Req, Res> Unpin for ExchangeRecord<'a, Req, Res>
where Res: Unpin,

§

impl<'a, Req, Res> UnsafeUnpin for ExchangeRecord<'a, Req, Res>
where Res: UnsafeUnpin,

§

impl<'a, Req, Res> !UnwindSafe for ExchangeRecord<'a, Req, Res>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.