Skip to content

Commit 2401f15

Browse files
committed
0.3.1
1 parent a82cc29 commit 2401f15

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 0.3.1
2+
- Add missing `enet::connected::Host::now` function
3+
14
# 0.3.0
25
- Add `SocketError` trait
36
- Add `BadParameter` type in `HostNewError::BadParameter`

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rusty_enet"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
edition = "2021"
55
description = "ENet for Rust (and wasm!) transpiled from C."
66
homepage = "https://github.com/jabuwu/rusty_enet"

src/connected.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,11 @@ impl<C: Connection> Host<C> {
11511151
pub fn set_mtu(&mut self, mtu: u16) -> Result<(), crate::error::BadParameter> {
11521152
self.host.set_mtu(mtu)
11531153
}
1154+
1155+
/// See [`Host::now`](`crate::Host::now`).
1156+
pub fn now(&self) -> Duration {
1157+
self.host.now()
1158+
}
11541159
}
11551160

11561161
#[cfg(feature = "std")]

0 commit comments

Comments
 (0)