aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/connection.rs1
-rw-r--r--src/server.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/client/connection.rs b/src/client/connection.rs
index 05ab185..4328d73 100644
--- a/src/client/connection.rs
+++ b/src/client/connection.rs
@@ -116,6 +116,7 @@ impl ConnectionConfiguration {
///
/// Connect to an IPv4 server hosted on localhost (127.0.0.1), which is listening on port 6000. Use 0 as a local bind port to let the OS assign a port.
/// ```
+ /// use std::net::{IpAddr, Ipv4Addr};
/// use bevy_quinnet::client::connection::ConnectionConfiguration;
/// let config = ConnectionConfiguration::from_ips(
/// IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)),
diff --git a/src/server.rs b/src/server.rs
index ae3bd82..f099f26 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -93,6 +93,7 @@ impl ServerConfiguration {
///
/// Listen on port 6000, on an IPv4 endpoint, for all incoming IPs.
/// ```
+ /// use std::net::{IpAddr, Ipv4Addr};
/// use bevy_quinnet::server::ServerConfiguration;
/// let config = ServerConfiguration::from_ip(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 6000);
/// ```