mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-17 02:01:14 +10:00
refactor: Cleaning up downloads playing and pausing
Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
@ -3,7 +3,7 @@ use url::Url;
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub struct P2PManager {
|
||||
peers: Vec<Peer>
|
||||
peers: Vec<Peer>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
@ -15,12 +15,12 @@ pub struct Peer {
|
||||
|
||||
impl Peer {
|
||||
pub fn get_current_endpoint(&self) -> Url {
|
||||
return self.endpoints[self.current_endpoint].clone();
|
||||
self.endpoints[self.current_endpoint].clone()
|
||||
}
|
||||
pub fn connect(&mut self, ) {
|
||||
pub fn connect(&mut self) {
|
||||
todo!()
|
||||
}
|
||||
pub fn disconnect(&mut self) {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user