aboutsummaryrefslogtreecommitdiffstats
path: root/src/platform/udp.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/platform/udp.rs (renamed from src/platform/bind.rs)4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform/bind.rs b/src/platform/udp.rs
index 9487dfd..3671229 100644
--- a/src/platform/bind.rs
+++ b/src/platform/udp.rs
@@ -13,7 +13,7 @@ pub trait Writer<E: Endpoint>: Send + Sync + Clone + 'static {
fn write(&self, buf: &[u8], dst: &E) -> Result<(), Self::Error>;
}
-pub trait Bind: Send + Sync + 'static {
+pub trait UDP: Send + Sync + 'static {
type Error: Error;
type Endpoint: Endpoint;
@@ -37,7 +37,7 @@ pub trait Owner: Send {
/// On some platforms the application can itself bind to a socket.
/// This enables configuration using the UAPI interface.
-pub trait PlatformBind: Bind {
+pub trait PlatformUDP: UDP {
type Owner: Owner;
/// Bind to a new port, returning the reader/writer and