Skip to content

Commit f4096d1

Browse files
committed
Merge branch 'derive-reachability-flags-traits'
2 parents fe56d19 + 83ce40f commit f4096d1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ Line wrap the file at 100 chars. Th
2727
- Breaking: Mark `SCNetworkReachability::schedule_with_runloop` and `unschedule_from_runloop` as
2828
`unsafe`. They accept a raw pointer that it dereferences. Figuring out a safe API around this is
2929
left as an exercise for the future.
30+
- Breaking: `ReachabilityFlags` no longer implements `Ord` or `PartialOrd`. It also replaces the
31+
`from_bits_unchecked` constructor with other (safe) `from_bits_*` constructors.
3032

3133
### Fixed
3234
- Fix memory leak in `SCNetworkReachability::set_callback`.

system-configuration/src/network_reachability.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ bitflags::bitflags! {
8585
/// Rustier interface for [`SCNetworkReachabilityFlags`].
8686
///
8787
/// [`SCNetworkReachability`]: https://developer.apple.com/documentation/systemconfiguration/scnetworkreachabilityflags
88+
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
8889
pub struct ReachabilityFlags: u32 {
8990
/// The specified node name or address can be reached via a transient connection, such as
9091
/// PPP.

0 commit comments

Comments
 (0)