mix_peer: adding a to_string() definition

This commit is contained in:
Dave Hrycyszyn
2019-12-16 16:26:30 +00:00
parent aa207e2c13
commit ddf0d762d7
+4
View File
@@ -24,4 +24,8 @@ impl MixPeer {
stream.write_all(&bytes).await?;
Ok(())
}
pub fn to_string(&self) -> String {
self.connection.to_string()
}
}