pub struct MethodWithSecret<M, S>where
M: VerificationMethod,{
pub method: M,
pub secret: Arc<S>,
}Fields§
§method: M§secret: Arc<S>Implementations§
Source§impl<M, S> MethodWithSecret<M, S>where
M: VerificationMethod,
impl<M, S> MethodWithSecret<M, S>where
M: VerificationMethod,
pub fn new(method: M, secret: Arc<S>) -> MethodWithSecret<M, S>
Trait Implementations§
Source§impl<A, M, S> MessageSigner<A> for MethodWithSecret<M, S>where
A: SignatureAlgorithmType,
M: SigningMethod<S, A>,
impl<A, M, S> MessageSigner<A> for MethodWithSecret<M, S>where
A: SignatureAlgorithmType,
M: SigningMethod<S, A>,
async fn sign( self, algorithm: <A as SignatureAlgorithmType>::Instance, message: &[u8], ) -> Result<Vec<u8>, MessageSignatureError>
async fn sign_multi( self, algorithm: <A as SignatureAlgorithmType>::Instance, messages: &[Vec<u8>], ) -> Result<Vec<u8>, MessageSignatureError>
Auto Trait Implementations§
impl<M, S> Freeze for MethodWithSecret<M, S>where
M: Freeze,
impl<M, S> RefUnwindSafe for MethodWithSecret<M, S>where
M: RefUnwindSafe,
S: RefUnwindSafe,
impl<M, S> Send for MethodWithSecret<M, S>
impl<M, S> Sync for MethodWithSecret<M, S>
impl<M, S> Unpin for MethodWithSecret<M, S>where
M: Unpin,
impl<M, S> UnwindSafe for MethodWithSecret<M, S>where
M: UnwindSafe,
S: 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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.