docs(client): a custom connector must be implement the Clone trait (#2064)
This commit is contained in:
committed by
Sean McArthur
parent
f45137ad6d
commit
164feec941
@@ -30,6 +30,7 @@
|
|||||||
//! use hyper::{service::Service, Uri};
|
//! use hyper::{service::Service, Uri};
|
||||||
//! use tokio::net::TcpStream;
|
//! use tokio::net::TcpStream;
|
||||||
//!
|
//!
|
||||||
|
//! #[derive(Clone)]
|
||||||
//! struct LocalConnector;
|
//! struct LocalConnector;
|
||||||
//!
|
//!
|
||||||
//! impl Service<Uri> for LocalConnector {
|
//! impl Service<Uri> for LocalConnector {
|
||||||
|
|||||||
Reference in New Issue
Block a user