Skip to content

Commit

Permalink
0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jabuwu committed Aug 13, 2024
1 parent a82cc29 commit 2401f15
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.3.1
- Add missing `enet::connected::Host::now` function

# 0.3.0
- Add `SocketError` trait
- Add `BadParameter` type in `HostNewError::BadParameter`
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rusty_enet"
version = "0.3.0"
version = "0.3.1"
edition = "2021"
description = "ENet for Rust (and wasm!) transpiled from C."
homepage = "https://github.com/jabuwu/rusty_enet"
Expand Down
5 changes: 5 additions & 0 deletions src/connected.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,11 @@ impl<C: Connection> Host<C> {
pub fn set_mtu(&mut self, mtu: u16) -> Result<(), crate::error::BadParameter> {
self.host.set_mtu(mtu)
}

/// See [`Host::now`](`crate::Host::now`).
pub fn now(&self) -> Duration {
self.host.now()
}
}

#[cfg(feature = "std")]
Expand Down

0 comments on commit 2401f15

Please sign in to comment.