Skip to content

Commit

Permalink
Merge branch 'derive-reachability-flags-traits'
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Jan 31, 2024
2 parents fe56d19 + 83ce40f commit f4096d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ Line wrap the file at 100 chars. Th
- Breaking: Mark `SCNetworkReachability::schedule_with_runloop` and `unschedule_from_runloop` as
`unsafe`. They accept a raw pointer that it dereferences. Figuring out a safe API around this is
left as an exercise for the future.
- Breaking: `ReachabilityFlags` no longer implements `Ord` or `PartialOrd`. It also replaces the
`from_bits_unchecked` constructor with other (safe) `from_bits_*` constructors.

### Fixed
- Fix memory leak in `SCNetworkReachability::set_callback`.
Expand Down
1 change: 1 addition & 0 deletions system-configuration/src/network_reachability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ bitflags::bitflags! {
/// Rustier interface for [`SCNetworkReachabilityFlags`].
///
/// [`SCNetworkReachability`]: https://developer.apple.com/documentation/systemconfiguration/scnetworkreachabilityflags
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct ReachabilityFlags: u32 {
/// The specified node name or address can be reached via a transient connection, such as
/// PPP.
Expand Down

0 comments on commit f4096d1

Please sign in to comment.