pub trait AsSigner {
    type Signer: Signer;
    fn as_signer(&self) -> &Self::Signer;
}
Expand description

Returns a referenec to the underlying Signer.

Associated Types

Required methods

Returns a reference to the underlying Signer if you wish to use its methods.

Example
use itsdangerous::{default_builder, TimestampSigner, IntoTimestampSigner, Signer, AsSigner};

let timestamp_signer = default_builder("hello world").build().into_timestamp_signer();
let signer = timestamp_signer.as_signer();
let signer = signer.sign("hello without a timestamp!");

Implementors