diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2020-02-12 21:38:25 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2020-02-12 21:38:25 +0100 |
commit | 5e6edb280e588397c3420d08cf46a52b34b58740 (patch) | |
tree | dee5854adb5adce3549e53d96b48f0ef16886f04 /src/platform/udp.rs | |
parent | Squashed commit of the following: (diff) | |
download | wireguard-rs-5e6edb280e588397c3420d08cf46a52b34b58740.tar.xz wireguard-rs-5e6edb280e588397c3420d08cf46a52b34b58740.zip |
Bumped crate versions.
Diffstat (limited to '')
-rw-r--r-- | src/platform/udp.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/udp.rs b/src/platform/udp.rs index e1180fb..4098b10 100644 --- a/src/platform/udp.rs +++ b/src/platform/udp.rs @@ -7,7 +7,7 @@ pub trait Reader<E: Endpoint>: Send + Sync { fn read(&self, buf: &mut [u8]) -> Result<(usize, E), Self::Error>; } -pub trait Writer<E: Endpoint>: Send + Sync + Clone + 'static { +pub trait Writer<E: Endpoint>: Send + Sync + 'static { type Error: Error; fn write(&self, buf: &[u8], dst: &mut E) -> Result<(), Self::Error>; |