pub struct WithProtocol<A, P>(pub A, pub P);
Tuple Fields§
§0: A
§1: P
Implementations§
Source§impl<A, P> WithProtocol<A, P>
impl<A, P> WithProtocol<A, P>
Trait Implementations§
Source§impl<A: Clone, P: Clone> Clone for WithProtocol<A, P>
impl<A: Clone, P: Clone> Clone for WithProtocol<A, P>
Source§fn clone(&self) -> WithProtocol<A, P>
fn clone(&self) -> WithProtocol<A, P>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<A: SignatureAlgorithmType, P: SignatureProtocol<A>, S: MessageSigner<A>> MessageSigner<WithProtocol<A, P>> for LocalMessageSigner<S>
impl<A: SignatureAlgorithmType, P: SignatureProtocol<A>, S: MessageSigner<A>> MessageSigner<WithProtocol<A, P>> for LocalMessageSigner<S>
async fn sign( self, __arg1: WithProtocol<A::Instance, P>, message: &[u8], ) -> Result<Vec<u8>, MessageSignatureError>
async fn sign_multi( self, __arg1: WithProtocol<A::Instance, P>, messages: &[Vec<u8>], ) -> Result<Vec<u8>, MessageSignatureError>
Source§impl<A: Ord, P: Ord> Ord for WithProtocol<A, P>
impl<A: Ord, P: Ord> Ord for WithProtocol<A, P>
Source§fn cmp(&self, other: &WithProtocol<A, P>) -> Ordering
fn cmp(&self, other: &WithProtocol<A, P>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<A: PartialOrd, P: PartialOrd> PartialOrd for WithProtocol<A, P>
impl<A: PartialOrd, P: PartialOrd> PartialOrd for WithProtocol<A, P>
Source§impl<I: SignatureAlgorithmInstance, P: Copy> SignatureAlgorithmInstance for WithProtocol<I, P>
impl<I: SignatureAlgorithmInstance, P: Copy> SignatureAlgorithmInstance for WithProtocol<I, P>
type Algorithm = WithProtocol<<I as SignatureAlgorithmInstance>::Algorithm, P>
fn algorithm(&self) -> Self::Algorithm
Source§impl<A: SignatureAlgorithmType, P: Copy> SignatureAlgorithmType for WithProtocol<A, P>
impl<A: SignatureAlgorithmType, P: Copy> SignatureAlgorithmType for WithProtocol<A, P>
type Instance = WithProtocol<<A as SignatureAlgorithmType>::Instance, P>
impl<A: Copy, P: Copy> Copy for WithProtocol<A, P>
impl<A: Eq, P: Eq> Eq for WithProtocol<A, P>
impl<A, P> StructuralPartialEq for WithProtocol<A, P>
Auto Trait Implementations§
impl<A, P> Freeze for WithProtocol<A, P>
impl<A, P> RefUnwindSafe for WithProtocol<A, P>where
A: RefUnwindSafe,
P: RefUnwindSafe,
impl<A, P> Send for WithProtocol<A, P>
impl<A, P> Sync for WithProtocol<A, P>
impl<A, P> Unpin for WithProtocol<A, P>
impl<A, P> UnwindSafe for WithProtocol<A, P>where
A: UnwindSafe,
P: UnwindSafe,
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> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
.