pub struct TribechainBridge;Implementations§
Source§impl TribechainBridge
impl TribechainBridge
pub fn new() -> TribechainBridge
Trait Implementations§
Source§impl ChainBridge for TribechainBridge
impl ChainBridge for TribechainBridge
fn submit_proof<'life0, 'life1, 'async_trait>(
&'life0 self,
proof: &'life1 ProofPayload,
) -> Pin<Box<dyn Future<Output = Result<TxSignature, TribeError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
TribechainBridge: 'async_trait,
fn query_miner<'life0, 'life1, 'async_trait>(
&'life0 self,
pubkey: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<MinerAccount>, TribeError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
TribechainBridge: 'async_trait,
fn register_miner<'life0, 'life1, 'async_trait>(
&'life0 self,
miner_pubkey: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<TxSignature, TribeError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
TribechainBridge: 'async_trait,
fn get_current_difficulty<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, TribeError>> + Send + 'async_trait>>where
'life0: 'async_trait,
TribechainBridge: 'async_trait,
fn request_swap<'life0, 'async_trait>(
&'life0 self,
_from_token: Token,
_to_token: Token,
_amount: u64,
) -> Pin<Box<dyn Future<Output = Result<TxSignature, TribeError>> + Send + 'async_trait>>where
'life0: 'async_trait,
TribechainBridge: 'async_trait,
Source§impl Default for TribechainBridge
impl Default for TribechainBridge
Source§fn default() -> TribechainBridge
fn default() -> TribechainBridge
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TribechainBridge
impl RefUnwindSafe for TribechainBridge
impl Send for TribechainBridge
impl Sync for TribechainBridge
impl Unpin for TribechainBridge
impl UnsafeUnpin for TribechainBridge
impl UnwindSafe for TribechainBridge
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