pub enum AnyProtocol {
None,
Base58Btc,
Base58BtcMultibase,
EthereumWallet,
}Variants§
Trait Implementations§
Source§impl Clone for AnyProtocol
impl Clone for AnyProtocol
Source§fn clone(&self) -> AnyProtocol
fn clone(&self) -> AnyProtocol
Returns a duplicate 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 Debug for AnyProtocol
impl Debug for AnyProtocol
Source§impl From<()> for AnyProtocol
impl From<()> for AnyProtocol
Source§impl From<Base58Btc> for AnyProtocol
impl From<Base58Btc> for AnyProtocol
Source§impl From<Base58BtcMultibase> for AnyProtocol
impl From<Base58BtcMultibase> for AnyProtocol
Source§fn from(_value: Base58BtcMultibase) -> Self
fn from(_value: Base58BtcMultibase) -> Self
Converts to this type from the input type.
Source§impl From<EthereumWallet> for AnyProtocol
impl From<EthereumWallet> for AnyProtocol
Source§fn from(_value: EthereumWallet) -> Self
fn from(_value: EthereumWallet) -> Self
Converts to this type from the input type.
Source§impl Ord for AnyProtocol
impl Ord for AnyProtocol
Source§fn cmp(&self, other: &AnyProtocol) -> Ordering
fn cmp(&self, other: &AnyProtocol) -> 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 PartialEq for AnyProtocol
impl PartialEq for AnyProtocol
Source§impl PartialOrd for AnyProtocol
impl PartialOrd for AnyProtocol
Source§impl SignatureProtocol<Algorithm> for AnyProtocol
impl SignatureProtocol<Algorithm> for AnyProtocol
fn prepare_message<'b>(&self, bytes: &'b [u8]) -> Cow<'b, [u8]>
fn encode_signature( &self, algorithm: Algorithm, signature: Vec<u8>, ) -> Result<Vec<u8>, MessageSignatureError>
fn decode_signature<'s>( &self, encoded_signature: &'s [u8], ) -> Result<Cow<'s, [u8]>, InvalidProtocolSignature>
fn prepare_messages<'b>(&self, bytes: &'b [Vec<u8>]) -> Cow<'b, [Vec<u8>]>
impl Copy for AnyProtocol
impl Eq for AnyProtocol
impl StructuralPartialEq for AnyProtocol
Auto Trait Implementations§
impl Freeze for AnyProtocol
impl RefUnwindSafe for AnyProtocol
impl Send for AnyProtocol
impl Sync for AnyProtocol
impl Unpin for AnyProtocol
impl UnwindSafe for AnyProtocol
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> 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.