Encourage the use of TorClient::clone().

This commit is contained in:
Nick Mathewson 2021-10-28 20:19:54 -04:00
parent c8f65e532e
commit 6cba1acef4
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ use tracing::{debug, error, info, warn};
/// circuits, and make connections for you.
///
/// Cloning this object makes a new reference to the same underlying
/// handles.
/// handles: it's usually better to clone the `TorClient` than it is to
/// create a new one.
#[derive(Clone)]
pub struct TorClient<R: Runtime> {
/// Asynchronous runtime object.