pub struct TestSigner(/* private fields */);
Trait Implementations§
Source§impl Signer for TestSigner
impl Signer for TestSigner
Source§fn public(&self) -> &Key<PublicParts, UnspecifiedRole>
fn public(&self) -> &Key<PublicParts, UnspecifiedRole>
Returns a reference to the public key.
Source§fn sign(&mut self, hash_algo: HashAlgorithm, digest: &[u8]) -> Result<Signature>
fn sign(&mut self, hash_algo: HashAlgorithm, digest: &[u8]) -> Result<Signature>
Creates a signature over the
digest
produced by hash_algo
.Source§fn acceptable_hashes(&self) -> &[HashAlgorithm]
fn acceptable_hashes(&self) -> &[HashAlgorithm]
Returns a list of hashes that this signer accepts. Read more
Auto Trait Implementations§
impl !Freeze for TestSigner
impl !RefUnwindSafe for TestSigner
impl Send for TestSigner
impl Sync for TestSigner
impl Unpin for TestSigner
impl !UnwindSafe for TestSigner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more