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§
fn sign<S: SignerKey>(
self,
key: &S,
params: &SignatureParams,
) -> impl Future<Output = Result<Self, SignError>> + Sendwhere
Self: Sized,
fn verify_sign<V: VerifierKey>( &self, key: &V, ) -> impl Future<Output = Result<(), VerificationError>> + Send
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".