Skip to main content

ResponseSign

Trait ResponseSign 

Source
pub trait ResponseSign {
    // Required methods
    fn sign<S: SignerKey>(
        self,
        key: &S,
        params: &SignatureParams,
    ) -> impl Future<Output = Result<Self, SignError>> + Send
       where Self: Sized;
    fn verify_sign<V: VerifierKey>(
        &self,
        key: &V,
    ) -> impl Future<Output = Result<(), VerificationError>> + Send
       where Self: Sized + Sync;
}

Required Methods§

Source

fn sign<S: SignerKey>( self, key: &S, params: &SignatureParams, ) -> impl Future<Output = Result<Self, SignError>> + Send
where Self: Sized,

Source

fn verify_sign<V: VerifierKey>( &self, key: &V, ) -> impl Future<Output = Result<(), VerificationError>> + Send
where Self: Sized + Sync,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<B> ResponseSign for Response<B>
where B: Body + Send, B::Data: Send,

Source§

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

Source§

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

Implementors§