Trait Signer

Source
pub trait Signer<M>{
    type MessageSigner;

    // Required method
    async fn for_method(
        &self,
        method: Cow<'_, M>,
    ) -> Result<Option<Self::MessageSigner>, SignatureError>;
}
Expand description

Verification method signer.

Required Associated Types§

Required Methods§

Source

async fn for_method( &self, method: Cow<'_, M>, ) -> Result<Option<Self::MessageSigner>, SignatureError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<M, S> Signer<M> for &S
where M: VerificationMethod, S: Signer<M>,

Source§

type MessageSigner = <S as Signer<M>>::MessageSigner

Source§

async fn for_method( &self, method: Cow<'_, M>, ) -> Result<Option<<&S as Signer<M>>::MessageSigner>, SignatureError>

Implementors§