Enum walletd_coin_core::ConnectorType
source · pub enum ConnectorType<T>where
T: BlockchainConnector + Clone,{
BTC(T),
ETH(T),
}
Expand description
Represents the type of blockchain connector that is being used.
The different enum variants are meant to bue used with different cryptocurrency types and the generic type T is meant to be a specific struct that implements the BlockchainConnector trait.
Variants§
BTC(T)
BTC is a variant that represents a connector that is used to connect to a Bitcoin blockchain
ETH(T)
ETH is a variant that represents a connector that is used to connect to an Ethereum blockchain
Trait Implementations§
source§impl<T> Clone for ConnectorType<T>where
T: BlockchainConnector + Clone + Clone,
impl<T> Clone for ConnectorType<T>where T: BlockchainConnector + Clone + Clone,
source§fn clone(&self) -> ConnectorType<T>
fn clone(&self) -> ConnectorType<T>
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<T> Debug for ConnectorType<T>where
T: BlockchainConnector + Clone + Debug,
impl<T> Debug for ConnectorType<T>where T: BlockchainConnector + Clone + Debug,
impl<T> Copy for ConnectorType<T>where T: BlockchainConnector + Clone + Copy,
Auto Trait Implementations§
impl<T> RefUnwindSafe for ConnectorType<T>where T: RefUnwindSafe,
impl<T> Send for ConnectorType<T>where T: Send,
impl<T> Sync for ConnectorType<T>where T: Sync,
impl<T> Unpin for ConnectorType<T>where T: Unpin,
impl<T> UnwindSafe for ConnectorType<T>where T: 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