pub struct ArcSigner<T>(pub Arc<T>);
Expand description
A wrapper around an Arc<T>
that implements Signer
for the inner type.
This allows passing Arc<SK>
where SK: Signer
is expected.
§Type Parameters
T
- The type being wrapped in anArc
Tuple Fields§
§0: Arc<T>
Trait Implementations§
Source§impl<T: Keypair> Keypair for ArcSigner<T>
impl<T: Keypair> Keypair for ArcSigner<T>
Source§fn verifying_key(&self) -> Self::VerifyingKey
fn verifying_key(&self) -> Self::VerifyingKey
Returns the verifying key associated with the inner keypair.
Source§type VerifyingKey = <T as Keypair>::VerifyingKey
type VerifyingKey = <T as Keypair>::VerifyingKey
Verifying key type for this keypair.
Auto Trait Implementations§
impl<T> Freeze for ArcSigner<T>
impl<T> RefUnwindSafe for ArcSigner<T>where
T: RefUnwindSafe,
impl<T> Send for ArcSigner<T>
impl<T> Sync for ArcSigner<T>
impl<T> Unpin for ArcSigner<T>
impl<T> UnwindSafe for ArcSigner<T>where
T: RefUnwindSafe,
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