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: PartialEq, P: PartialEq> PartialEq for WithProtocol<A, P>
impl<A: PartialEq, P: PartialEq> PartialEq for WithProtocol<A, P>
source§fn eq(&self, other: &WithProtocol<A, P>) -> bool
fn eq(&self, other: &WithProtocol<A, P>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<A: PartialOrd, P: PartialOrd> PartialOrd for WithProtocol<A, P>
impl<A: PartialOrd, P: PartialOrd> PartialOrd for WithProtocol<A, P>
source§fn partial_cmp(&self, other: &WithProtocol<A, P>) -> Option<Ordering>
fn partial_cmp(&self, other: &WithProtocol<A, P>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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
.