Move EventLoopHandle next to its impl block

This struct is not that important so it can move further down.
This commit is contained in:
Thomas Eizinger 2021-03-18 12:14:39 +11:00
parent e77f1729b4
commit d682433ec9
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

View File

@ -42,12 +42,6 @@ pub struct EventLoop<RS> {
swap_sender: mpsc::Sender<Swap>, swap_sender: mpsc::Sender<Swap>,
} }
#[derive(Debug)]
pub struct EventLoopHandle {
recv_encrypted_signature: Option<oneshot::Receiver<EncryptedSignature>>,
send_transfer_proof: Option<oneshot::Sender<TransferProof>>,
}
impl<LR> EventLoop<LR> impl<LR> EventLoop<LR>
where where
LR: LatestRate, LR: LatestRate,
@ -310,6 +304,12 @@ impl LatestRate for kraken::RateUpdateStream {
} }
} }
#[derive(Debug)]
pub struct EventLoopHandle {
recv_encrypted_signature: Option<oneshot::Receiver<EncryptedSignature>>,
send_transfer_proof: Option<oneshot::Sender<TransferProof>>,
}
impl EventLoopHandle { impl EventLoopHandle {
pub async fn recv_encrypted_signature(&mut self) -> Result<bitcoin::EncryptedSignature> { pub async fn recv_encrypted_signature(&mut self) -> Result<bitcoin::EncryptedSignature> {
let signature = self let signature = self